blob: 8e05e2f52e2dc66592729b08d0adb40aae89ff19 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#
# Copyright (c) Microsoft Corporation. All rights reserved.
#
Version = 1.0
Section = threading
Function = CriticalSectionFunctions
Name = Positive test to ensure CRITICAL_SECTION objects can be nested
TYPE = DEFAULT
EXE1 = test2
Description
= Test that we are able to nest critical section calls.
= The initial thread makes a call to EnterCriticalSection once,
= blocking on a CRITICAL_SECTION object and creates a new thread.
= The newly created thread blocks on the same CRITICAL_SECTION object.
= The first thread now makes a call to LeaveCriticalSection.
= Test to see that the new thread doesn't get unblocked.
|