Quantcast
Channel: Critical section containing another critical section? - Stack Overflow
Viewing all articles
Browse latest Browse all 2

Critical section containing another critical section?

$
0
0

Is it permissible to nest critical section like this below?:

void somefunction(){   EnterCriticalSection(&g_List);    ...   EnterCriticalSection(&g_Variable);    ...   LeaveCriticalSection(&g_Variable);     ...   LeaveCriticalSection(&g_List);}

Viewing all articles
Browse latest Browse all 2

Trending Articles





<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>