diff options
author | Malcolm Beattie <mbeattie@sable.ox.ac.uk> | 1997-10-29 14:39:54 +0000 |
---|---|---|
committer | Malcolm Beattie <mbeattie@sable.ox.ac.uk> | 1997-10-29 14:39:54 +0000 |
commit | 46930d8f1568c61dcd2ab37f6a2924dc79596ffc (patch) | |
tree | 67e8f7c0f338abbf9de51ffbb7fb9b3377619934 /win32/win32thread.c | |
parent | 25f62d1c923a0e842a23489d92db1990acf9c23b (diff) | |
download | perl-46930d8f1568c61dcd2ab37f6a2924dc79596ffc.tar.gz |
Remove global macro "self". Change thr->Tself to thr->self.
p4raw-id: //depot/perl@190
Diffstat (limited to 'win32/win32thread.c')
-rw-r--r-- | win32/win32thread.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/win32/win32thread.c b/win32/win32thread.c index e74d7e8933..9f63d178f4 100644 --- a/win32/win32thread.c +++ b/win32/win32thread.c @@ -8,7 +8,7 @@ init_thread_intern(struct thread *thr) DuplicateHandle(GetCurrentProcess(), GetCurrentThread(), GetCurrentProcess(), - &self, + &thr->self, 0, FALSE, DUPLICATE_SAME_ACCESS); @@ -24,7 +24,7 @@ thread_create(struct thread *thr, THREAD_RET_TYPE (*fn)(void *)) DWORD junk; MUTEX_LOCK(&thr->mutex); - self = CreateThread(NULL, 0, fn, (void*)thr, 0, &junk); + thr->self = CreateThread(NULL, 0, fn, (void*)thr, 0, &junk); MUTEX_UNLOCK(&thr->mutex); - return self ? 0 : -1; + return thr->self ? 0 : -1; } |