thr_create.c (22315) | thr_create.c (33292) |
---|---|
1/* 2 * Copyright (c) 1995 John Birrell <jb@cimlogic.com.au>. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 185 unchanged lines hidden (view full) --- 194 new_thread->parent_thread = parent; 195 new_thread->flags = 0; 196 197 /* Add the thread to the linked list of all threads: */ 198 new_thread->nxt = _thread_link_list; 199 _thread_link_list = new_thread; 200 201 /* Return a pointer to the thread structure: */ | 1/* 2 * Copyright (c) 1995 John Birrell <jb@cimlogic.com.au>. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 185 unchanged lines hidden (view full) --- 194 new_thread->parent_thread = parent; 195 new_thread->flags = 0; 196 197 /* Add the thread to the linked list of all threads: */ 198 new_thread->nxt = _thread_link_list; 199 _thread_link_list = new_thread; 200 201 /* Return a pointer to the thread structure: */ |
202 (*thread) = new_thread; | 202 if(thread) 203 (*thread) = new_thread; |
203 204 /* Check if a parent thread was specified: */ 205 if (parent != NULL) { 206 /* 207 * A parent thread was specified, so this is 208 * a signal handler thread which must now 209 * wait for the signal handler to complete: 210 */ --- 70 unchanged lines hidden --- | 204 205 /* Check if a parent thread was specified: */ 206 if (parent != NULL) { 207 /* 208 * A parent thread was specified, so this is 209 * a signal handler thread which must now 210 * wait for the signal handler to complete: 211 */ --- 70 unchanged lines hidden --- |