Date: Fri, 2 Aug 2002 01:05:55 -0700 (PDT) From: Jonathan Mini <mini@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 15440 for review Message-ID: <200208020805.g7285trK069928@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=15440 Change 15440 by mini@mini_stylus on 2002/08/02 01:05:32 Remove some things now unused for signals. Affected files ... .. //depot/projects/kse/lib/libc_r/uthread/pthread_private.h#6 edit .. //depot/projects/kse/lib/libc_r/uthread/uthread_cancel.c#4 edit .. //depot/projects/kse/lib/libc_r/uthread/uthread_info.c#4 edit .. //depot/projects/kse/lib/libc_r/uthread/uthread_kern.c#5 edit Differences ... ==== //depot/projects/kse/lib/libc_r/uthread/pthread_private.h#6 (text+ko) ==== @@ -431,13 +431,10 @@ */ enum pthread_state { PS_RUNNING, - PS_SIGTHREAD, PS_MUTEX_WAIT, PS_COND_WAIT, PS_SLEEP_WAIT, PS_WAIT_WAIT, - PS_SIGSUSPEND, - PS_SIGWAIT, PS_SPINBLOCK, PS_JOIN, PS_SUSPENDED, @@ -602,9 +599,6 @@ */ int interrupted; - /* Signal number when in state PS_SIGWAIT: */ - int signo; - /* * Set to non-zero when this thread has deferred signals. * We allow for recursive deferral. ==== //depot/projects/kse/lib/libc_r/uthread/uthread_cancel.c#4 (text+ko) ==== @@ -49,11 +49,8 @@ != 0) PTHREAD_WORKQ_REMOVE(pthread); /* Fall through: */ - case PS_SIGTHREAD: case PS_SLEEP_WAIT: case PS_WAIT_WAIT: - case PS_SIGSUSPEND: - case PS_SIGWAIT: /* Interrupt and resume: */ pthread->interrupted = 1; pthread->cancelflags |= PTHREAD_CANCELLING; ==== //depot/projects/kse/lib/libc_r/uthread/uthread_info.c#4 (text+ko) ==== @@ -56,13 +56,10 @@ /* Static variables: */ static const struct s_thread_info thread_info[] = { {PS_RUNNING , "Running"}, - {PS_SIGTHREAD , "Waiting on signal thread"}, {PS_MUTEX_WAIT , "Waiting on a mutex"}, {PS_COND_WAIT , "Waiting on a condition variable"}, {PS_SLEEP_WAIT , "Sleeping"}, {PS_WAIT_WAIT , "Waiting process"}, - {PS_SIGSUSPEND , "Suspended, waiting for a signal"}, - {PS_SIGWAIT , "Waiting for a signal"}, {PS_SPINBLOCK , "Waiting for a spinlock"}, {PS_JOIN , "Waiting to join"}, {PS_SUSPENDED , "Suspended"}, @@ -202,9 +199,6 @@ } /* Process according to thread state: */ switch (pthread->state) { - /* File descriptor read lock wait: */ - case PS_SIGWAIT: - break; /* * Trap other states that are not explicitly * coded to dump information: ==== //depot/projects/kse/lib/libc_r/uthread/uthread_kern.c#5 (text+ko) ==== @@ -193,9 +193,6 @@ case PS_DEADLOCK: case PS_JOIN: case PS_MUTEX_WAIT: - case PS_SIGSUSPEND: - case PS_SIGTHREAD: - case PS_SIGWAIT: case PS_WAIT_WAIT: /* No timeouts for these states: */ curthread->wakeup_time.tv_sec = -1; To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200208020805.g7285trK069928>