mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 04:55:21 +02:00
Make the flag in thread_exclusive unique
This commit is contained in:
parent
1a00402987
commit
8c943e3be8
1 changed files with 3 additions and 2 deletions
|
@ -705,8 +705,9 @@ static st_table *conlist = NULL;
|
|||
#define conlist_disabled ((st_table *)-1)
|
||||
|
||||
#define thread_exclusive(obj) \
|
||||
for (bool first = (EnterCriticalSection(&obj##_mutex), true); \
|
||||
first; first = (LeaveCriticalSection(&obj##_mutex), false))
|
||||
for (bool exclusive_for_##obj = (EnterCriticalSection(&obj##_mutex), true); \
|
||||
exclusive_for_##obj; \
|
||||
exclusive_for_##obj = (LeaveCriticalSection(&obj##_mutex), false))
|
||||
|
||||
static char *uenvarea;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue