Is it permissible to nest critical section like this below?:
void somefunction(){ EnterCriticalSection(&g_List); ... EnterCriticalSection(&g_Variable); ... LeaveCriticalSection(&g_Variable); ... LeaveCriticalSection(&g_List);}
Is it permissible to nest critical section like this below?:
void somefunction(){ EnterCriticalSection(&g_List); ... EnterCriticalSection(&g_Variable); ... LeaveCriticalSection(&g_Variable); ... LeaveCriticalSection(&g_List);}