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 -

html - How can i make an element from a bottom stacking context stays in front of another higher stacking context? -

html - href attribute breaking an element -