Changeset 611 for trunk/kernel/kern/process.c
- Timestamp:
- Jan 9, 2019, 3:02:51 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/kern/process.c
r610 r611 274 274 remote_queuelock_init( XPTR( local_cxy , &process->children_lock ), LOCK_PROCESS_CHILDREN ); 275 275 276 // reset semaphore / mutex / barrier / condvar list roots 276 // reset semaphore / mutex / barrier / condvar list roots and lock 277 277 xlist_root_init( XPTR( local_cxy , &process->sem_root ) ); 278 278 xlist_root_init( XPTR( local_cxy , &process->mutex_root ) ); … … 280 280 xlist_root_init( XPTR( local_cxy , &process->condvar_root ) ); 281 281 remote_queuelock_init( XPTR( local_cxy , &process->sync_lock ), LOCK_PROCESS_USERSYNC ); 282 283 // reset open directories root and lock 284 xlist_root_init( XPTR( local_cxy , &process->dir_root ) ); 285 remote_queuelock_init( XPTR( local_cxy , &process->dir_lock ), LOCK_PROCESS_DIR ); 282 286 283 287 // register new process in the local cluster manager pref_tbl[] … … 546 550 thread_block( client_xp , THREAD_BLOCKED_RPC ); 547 551 548 // take the lock protecting process copies549 remote_queuelock_acquire( lock_xp );550 551 552 // initialize shared RPC descriptor 552 553 rpc.responses = 0; … … 555 556 rpc.thread = client; 556 557 rpc.lid = client->core->lid; 557 rpc.args[0] = type; 558 rpc.args[1] = pid; 558 rpc.args[0] = pid; 559 rpc.args[1] = type; 560 561 // take the lock protecting process copies 562 remote_queuelock_acquire( lock_xp ); 559 563 560 564 // scan list of process copies 561 // to send RPCs to remote copies562 565 XLIST_FOREACH( root_xp , iter_xp ) 563 566 {
Note: See TracChangeset
for help on using the changeset viewer.