c++ - When to delete the windows security attributes after creating a event/mutex -
i creating mutex using security attributes, question when should delete security_attributes structure. should delete after creating mutex, or should wait untill mutex handle closed.
approach 1. create security attributes createmutex using above security attributes task.... close mutex release security attributes approach 2. create security attributes createmutex using above security attributes release security attributes task.... close mutex
which 1 best way do??
Comments
Post a Comment