diff options
author | davidxu <davidxu@FreeBSD.org> | 2005-04-12 03:00:28 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2005-04-12 03:00:28 +0000 |
commit | 2cf5eeb00151f72e5aa07f0289c2889752eb07d9 (patch) | |
tree | b5ca39973148c65442650488e554719cd7db2deb /lib/libthr/thread/thr_init.c | |
parent | c874648f8b61fce9d0fd977d6502638d882c2f33 (diff) | |
download | FreeBSD-src-2cf5eeb00151f72e5aa07f0289c2889752eb07d9.zip FreeBSD-src-2cf5eeb00151f72e5aa07f0289c2889752eb07d9.tar.gz |
Add debugger event reporting support, current only TD_CREATE and TD_DEATH
events are reported.
Diffstat (limited to 'lib/libthr/thread/thr_init.c')
-rw-r--r-- | lib/libthr/thread/thr_init.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libthr/thread/thr_init.c b/lib/libthr/thread/thr_init.c index a0f4e5c..7636fec 100644 --- a/lib/libthr/thread/thr_init.c +++ b/lib/libthr/thread/thr_init.c @@ -309,6 +309,7 @@ _libpthread_init(struct pthread *curthread) _thr_initial = curthread; SIGDELSET(oldset, SIGCANCEL); __sys_sigprocmask(SIG_SETMASK, &oldset, NULL); + _thr_report_creation(curthread, curthread); } } @@ -384,6 +385,7 @@ init_private(void) _thr_umtx_init(&_rwlock_static_lock); _thr_umtx_init(&_keytable_lock); _thr_umtx_init(&_thr_atfork_lock); + _thr_umtx_init(&_thr_event_lock); _thr_spinlock_init(); _thr_list_init(); |