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

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -