PERFORCE change 74648 for review
David Xu
davidxu at FreeBSD.org
Thu Apr 7 00:42:02 PDT 2005
http://perforce.freebsd.org/chv.cgi?CH=74648
Change 74648 by davidxu at davidxu_celeron on 2005/04/07 07:41:20
Report thread creating and death event to debugger.
Affected files ...
.. //depot/projects/davidxu_thread/src/lib/libthr/thread/thr_create.c#3 edit
.. //depot/projects/davidxu_thread/src/lib/libthr/thread/thr_exit.c#3 edit
Differences ...
==== //depot/projects/davidxu_thread/src/lib/libthr/thread/thr_create.c#3 (text+ko) ====
@@ -212,6 +212,9 @@
/* Thread was created with all signals blocked, unblock them. */
__sys_sigprocmask(SIG_SETMASK, &curthread->sigmask, NULL);
+ if (__predict_false(_libthr_debug))
+ _thr_report_create(curthread);
+
if (curthread->flags & THR_FLAGS_NEED_SUSPEND)
_thr_suspend_check(curthread);
==== //depot/projects/davidxu_thread/src/lib/libthr/thread/thr_exit.c#3 (text+ko) ====
@@ -130,6 +130,8 @@
THREAD_LIST_UNLOCK(curthread);
if (curthread->joiner)
_thr_umtx_wake(&curthread->state, INT_MAX);
+ if (__predict_false(_libthr_debug))
+ _thr_report_death(curthread);
thr_exit(&curthread->terminated);
PANIC("thr_exit() returned");
/* Never reach! */
More information about the p4-projects
mailing list