Changeset 633 for trunk/kernel/syscalls/sys_thread_create.c
- Timestamp:
- May 28, 2019, 6:10:15 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/syscalls/sys_thread_create.c
r626 r633 47 47 void * start_args ) 48 48 { 49 pthread_attr_t kern_attr; // copy of pthread attributes in kernel space 50 thread_t * parent; // pointer on thread executing the pthread_create 51 xptr_t parent_xp; // extended pointer on calling thread 49 pthread_attr_t kern_attr; // copy of pthread attributes in kernel space 50 thread_t * parent; // pointer on thread executing the pthread_create 52 51 cxy_t child_cxy; // created child thread cluster identifier 53 thread_t * child_ptr; // pointer on created child thread 54 xptr_t child_xp; // extended pointer on created thread 55 trdid_t trdid; // created thread identifier 56 process_t * process; // pointer on local process descriptor 57 vseg_t * vseg; // required for user space checking 58 error_t error; 59 60 // get parent thead pointer, extended pointer, and process 61 parent = CURRENT_THREAD; 62 parent_xp = XPTR( local_cxy , parent ); 63 process = parent->process; 52 thread_t * child_ptr; // pointer on created child thread 53 xptr_t child_xp; // extended pointer on created thread 54 trdid_t trdid; // created thread identifier 55 process_t * process; // pointer on local process descriptor 56 vseg_t * vseg; // required for user space checking 57 error_t error; 58 59 // get parent thead pointer, extended pointer, and process 60 parent = CURRENT_THREAD; 61 process = parent->process; 64 62 65 63 #if (DEBUG_SYS_THREAD_CREATE || CONFIG_INSTRUMENTATION_SYSCALLS)
Note: See TracChangeset
for help on using the changeset viewer.