Go to the source code of this file.
◆ START_TEST()
Definition at line 118 of file interlck.c.
119{
125}
static void test_InterlockedIncrement(void)
static void test_InterlockedDecrement(void)
static void test_InterlockedExchange(void)
static void test_InterlockedExchangeAdd(void)
static void test_InterlockedCompareExchange(void)
◆ test_InterlockedCompareExchange()
static void test_InterlockedCompareExchange |
( |
void |
| ) |
|
|
static |
Definition at line 23 of file interlck.c.
24{
26
30 "Expected 0 and 1, got %ld and %ld",
res,
dest );
31
35 "Expected 1 and 1, got %ld and %ld",
res,
dest );
36}
#define InterlockedCompareExchange
Referenced by START_TEST().
◆ test_InterlockedDecrement()
static void test_InterlockedDecrement |
( |
void |
| ) |
|
|
static |
Definition at line 38 of file interlck.c.
39{
41
45 "Expected 0 and 0, got %ld and %ld",
res,
dest );
46
50 "Expected -1 and -1, got %ld and %ld",
res,
dest );
51
55 "Expected -2 and -2, got %ld and %ld",
res,
dest );
56}
#define InterlockedDecrement
Referenced by START_TEST().
◆ test_InterlockedExchange()
static void test_InterlockedExchange |
( |
void |
| ) |
|
|
static |
Definition at line 58 of file interlck.c.
59{
61
65 "Expected 0 and 1, got %ld and %ld",
res,
dest );
66
70 "Expected 1 and 2, got %ld and %ld",
res,
dest );
71
75 "Expected 1 and -1, got %ld and %ld",
res,
dest );
76}
#define InterlockedExchange
Referenced by START_TEST().
◆ test_InterlockedExchangeAdd()
static void test_InterlockedExchangeAdd |
( |
void |
| ) |
|
|
static |
Definition at line 78 of file interlck.c.
79{
81
85 "Expected 0 and 1, got %ld and %ld",
res,
dest );
86
90 "Expected 1 and 3, got %ld and %ld",
res,
dest );
91
95 "Expected 1 and 0, got %ld and %ld",
res,
dest );
96}
#define InterlockedExchangeAdd
Referenced by START_TEST().
◆ test_InterlockedIncrement()
static void test_InterlockedIncrement |
( |
void |
| ) |
|
|
static |
Definition at line 98 of file interlck.c.
99{
101
105 "Expected -1 and -1, got %ld and %ld",
res,
dest );
106
110 "Expected 0 and 0, got %ld and %ld",
res,
dest );
111
115 "Expected 1 and 1, got %ld and %ld",
res,
dest );
116}
#define InterlockedIncrement
Referenced by START_TEST().