We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 934179a commit 06de3b2Copy full SHA for 06de3b2
src/coreclr/pal/src/thread/threadsusp.cpp
@@ -50,14 +50,18 @@ suspension mutex or spinlock. The downside is that it restricts us to only
50
performing one suspension or resumption in the PAL at a time. */
51
#ifdef USE_GLOBAL_LOCK_FOR_SUSPENSION
52
53
+namespace
54
+{
55
+ LONG g_ssSuspensionLock = 0;
56
+}
57
+#endif
58
+
59
#define SYNCSPINLOCK_F_ASYMMETRIC 1
60
61
#define SPINLOCKInit(lock) (*(lock) = 0)
62
63
namespace
64
{
- LONG g_ssSuspensionLock = 0;
-
65
/* Basic spinlock implementation */
66
void SPINLOCKAcquire (LONG * lock, unsigned int flags)
67
@@ -94,9 +98,7 @@ namespace
94
98
return InterlockedCompareExchange(lock, 1, 0);
95
99
// only returns 0 or 1.
96
100
}
97
101
-#endif
102
103
/*++
104
Function:
0 commit comments