Skip to content

Commit

Permalink
2009-12-18 Ivan Maidanski <[email protected]>
Browse files Browse the repository at this point in the history
	* win32_threads.c (GC_register_my_thread_inner,
	GC_pthread_start_inner): Undo the previous commit changes for
	the thread flags and DETACHED state (since the state is only
	tested in GC_thread_exit_proc).
  • Loading branch information
ivmai authored and ivmai committed Jul 26, 2011
1 parent b795ce4 commit 82344a3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 7 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
2009-12-18 Ivan Maidanski <[email protected]>

* win32_threads.c (GC_register_my_thread_inner,
GC_pthread_start_inner): Undo the previous commit changes for
the thread flags and DETACHED state (since the state is only
tested in GC_thread_exit_proc).

2009-12-18 Ivan Maidanski <[email protected]> (with input from
Jean-Claude Beaudoin)

Expand Down
3 changes: 1 addition & 2 deletions win32_threads.c
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,6 @@ STATIC GC_thread GC_register_my_thread_inner(const struct GC_stack_base *sb,
# ifdef GC_PTHREADS
/* me can be NULL -> segfault */
me -> pthread_id = pthread_self();
me -> flags = DETACHED; /* cleared in GC_pthread_start_inner if needed */
# endif
# ifndef MSWINCE
/* GetCurrentThread() returns a pseudohandle (a const value). */
Expand Down Expand Up @@ -2437,7 +2436,7 @@ GC_INNER void GC_thr_init(void)
me = GC_register_my_thread_inner(sb, thread_id);
SET_PTHREAD_MAP_CACHE(pthread_id, thread_id);
me -> pthread_id = pthread_id;
if (!si->detached) me -> flags &= ~DETACHED;
if (si->detached) me -> flags |= DETACHED;
UNLOCK();

start = si -> start_routine;
Expand Down

0 comments on commit 82344a3

Please sign in to comment.