thr_create.c (114295) | thr_create.c (114664) |
---|---|
1/* 2 * Copyright (c) 2003 Daniel M. Eischen <deischen@gdeb.com> 3 * Copyright (c) 1995-1998 John Birrell <jb@cimlogic.com.au> 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 16 unchanged lines hidden (view full) --- 25 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * | 1/* 2 * Copyright (c) 2003 Daniel M. Eischen <deischen@gdeb.com> 3 * Copyright (c) 1995-1998 John Birrell <jb@cimlogic.com.au> 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 16 unchanged lines hidden (view full) --- 25 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * |
33 * $FreeBSD: head/lib/libkse/thread/thr_create.c 114295 2003-04-30 15:05:17Z deischen $ | 33 * $FreeBSD: head/lib/libkse/thread/thr_create.c 114664 2003-05-04 16:17:01Z deischen $ |
34 */ 35#include <errno.h> 36#include <stdlib.h> 37#include <string.h> 38#include <fcntl.h> 39#include <unistd.h> 40#include <stddef.h> 41#include <sys/time.h> --- 212 unchanged lines hidden (view full) --- 254 } 255 256 /* Initialise hooks in the thread structure: */ 257 new_thread->specific = NULL; 258 new_thread->cleanup = NULL; 259 new_thread->flags = 0; 260 new_thread->continuation = NULL; 261 | 34 */ 35#include <errno.h> 36#include <stdlib.h> 37#include <string.h> 38#include <fcntl.h> 39#include <unistd.h> 40#include <stddef.h> 41#include <sys/time.h> --- 212 unchanged lines hidden (view full) --- 254 } 255 256 /* Initialise hooks in the thread structure: */ 257 new_thread->specific = NULL; 258 new_thread->cleanup = NULL; 259 new_thread->flags = 0; 260 new_thread->continuation = NULL; 261 |
262 if (new_thread->attr.suspend == THR_CREATE_SUSPENDED) | 262 if (new_thread->attr.suspend == THR_CREATE_SUSPENDED) { |
263 new_thread->state = PS_SUSPENDED; | 263 new_thread->state = PS_SUSPENDED; |
264 new_thread->flags = THR_FLAGS_SUSPENDED; 265 } |
|
264 else 265 new_thread->state = PS_RUNNING; 266 267 /* 268 * System scope threads have their own kse and 269 * kseg. Process scope threads are all hung 270 * off the main process kseg. 271 */ --- 89 unchanged lines hidden --- | 266 else 267 new_thread->state = PS_RUNNING; 268 269 /* 270 * System scope threads have their own kse and 271 * kseg. Process scope threads are all hung 272 * off the main process kseg. 273 */ --- 89 unchanged lines hidden --- |