diff options
| author | John Birrell <jb@FreeBSD.org> | 1997-04-01 22:51:48 +0000 | 
|---|---|---|
| committer | John Birrell <jb@FreeBSD.org> | 1997-04-01 22:51:48 +0000 | 
| commit | 1cec64c4d6292b6ac06ed84a8ba85a66174a0295 (patch) | |
| tree | 9b37ce7dd1f76fbc62c1003db0bb17a108efd1fc /lib/libpthread/thread/thr_kern.c | |
| parent | 745a12fc30cfd41506c8b3a7b16b27bf9cab94ed (diff) | |
Notes
Diffstat (limited to 'lib/libpthread/thread/thr_kern.c')
| -rw-r--r-- | lib/libpthread/thread/thr_kern.c | 32 | 
1 files changed, 17 insertions, 15 deletions
| diff --git a/lib/libpthread/thread/thr_kern.c b/lib/libpthread/thread/thr_kern.c index 679b3158048a..ba8e25070b4a 100644 --- a/lib/libpthread/thread/thr_kern.c +++ b/lib/libpthread/thread/thr_kern.c @@ -29,6 +29,8 @@   * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF   * SUCH DAMAGE.   * + * $Id$ + *   */  #include <errno.h>  #include <stdlib.h> @@ -1081,10 +1083,10 @@ _thread_kern_select(int wait_reqd)  		/* Process according to thread state: */  		switch (pthread->state) { -			/* -			 * States which do not depend on file descriptor I/O -			 * operations or timeouts:  -			 */ +		/* +		 * States which do not depend on file descriptor I/O +		 * operations or timeouts:  +		 */  		case PS_DEAD:  		case PS_FDLR_WAIT:  		case PS_FDLW_WAIT: @@ -1099,7 +1101,7 @@ _thread_kern_select(int wait_reqd)  			/* Nothing to do here. */  			break; -			/* File descriptor read wait: */ +		/* File descriptor read wait: */  		case PS_FDR_WAIT:  			/* Add the file descriptor to the read set: */  			FD_SET(pthread->data.fd.fd, &fd_set_read); @@ -1119,7 +1121,7 @@ _thread_kern_select(int wait_reqd)  			settimeout = 1;  			break; -			/* File descriptor write wait: */ +		/* File descriptor write wait: */  		case PS_FDW_WAIT:  			/* Add the file descriptor to the write set: */  			FD_SET(pthread->data.fd.fd, &fd_set_write); @@ -1139,14 +1141,14 @@ _thread_kern_select(int wait_reqd)  			settimeout = 1;  			break; -			/* States that time out: */ +		/* States that time out: */  		case PS_SLEEP_WAIT:  		case PS_COND_WAIT:  			/* Flag a timeout as required: */  			settimeout = 1;  			break; -			/* Select wait: */ +		/* Select wait: */  		case PS_SELECT_WAIT:  			/*  			 * Enter a loop to process each file descriptor in @@ -1428,10 +1430,10 @@ _thread_kern_select(int wait_reqd)  		for (pthread = _thread_link_list; pthread != NULL; pthread = pthread->nxt) {  			/* Process according to thread state: */  			switch (pthread->state) { -				/* -				 * States which do not depend on file -				 * descriptor I/O operations:  -				 */ +			/* +			 * States which do not depend on file +			 * descriptor I/O operations:  +			 */  			case PS_RUNNING:  			case PS_COND_WAIT:  			case PS_DEAD: @@ -1448,7 +1450,7 @@ _thread_kern_select(int wait_reqd)  				/* Nothing to do here. */  				break; -				/* File descriptor read wait: */ +			/* File descriptor read wait: */  			case PS_FDR_WAIT:  				/*  				 * Check if the file descriptor is available @@ -1464,7 +1466,7 @@ _thread_kern_select(int wait_reqd)  				}  				break; -				/* File descriptor write wait: */ +			/* File descriptor write wait: */  			case PS_FDW_WAIT:  				/*  				 * Check if the file descriptor is available @@ -1480,7 +1482,7 @@ _thread_kern_select(int wait_reqd)  				}  				break; -				/* Select wait: */ +			/* Select wait: */  			case PS_SELECT_WAIT:  				/*  				 * Reset the flag that indicates if a file | 
