Changeset cdcea6ce in rtems
- Timestamp:
- 08/12/96 17:21:04 (27 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- af04a791
- Parents:
- f126ae2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/exec/posix/src/cond.c
rf126ae2 rcdcea6ce 200 200 the_cond->process_shared = the_attr->process_shared; 201 201 202 the_cond->Mutex = 0;202 the_cond->Mutex = (unsigned32) NULL; 203 203 204 204 /* XXX some more initialization might need to go here */ … … 315 315 do { 316 316 the_thread = _Thread_queue_Dequeue( &the_cond->Wait_queue ); 317 if ( !the_thread ) 318 the_cond->Mutex = (unsigned32) NULL; 317 319 } while ( is_broadcast && the_thread ); 318 320 return 0; … … 373 375 case OBJECTS_LOCAL: 374 376 375 /* 376 * XXX: should be an error if cond->Mutex != mutex 377 */ 377 if ( the_cond->Mutex && ( the_cond->Mutex != *mutex ) ) 378 return EINVAL; 378 379 379 380 status = pthread_mutex_unlock( mutex ); … … 383 384 the_cond->Mutex = *mutex; 384 385 385 /* XXX .. enter critical section .. */ 386 _Thread_queue_Enter_critical_section( &the_cond->Wait_queue ); 387 386 388 _Thread_queue_Enqueue( &the_cond->Wait_queue, 0 ); 387 389 -
cpukit/posix/src/cond.c
rf126ae2 rcdcea6ce 200 200 the_cond->process_shared = the_attr->process_shared; 201 201 202 the_cond->Mutex = 0;202 the_cond->Mutex = (unsigned32) NULL; 203 203 204 204 /* XXX some more initialization might need to go here */ … … 315 315 do { 316 316 the_thread = _Thread_queue_Dequeue( &the_cond->Wait_queue ); 317 if ( !the_thread ) 318 the_cond->Mutex = (unsigned32) NULL; 317 319 } while ( is_broadcast && the_thread ); 318 320 return 0; … … 373 375 case OBJECTS_LOCAL: 374 376 375 /* 376 * XXX: should be an error if cond->Mutex != mutex 377 */ 377 if ( the_cond->Mutex && ( the_cond->Mutex != *mutex ) ) 378 return EINVAL; 378 379 379 380 status = pthread_mutex_unlock( mutex ); … … 383 384 the_cond->Mutex = *mutex; 384 385 385 /* XXX .. enter critical section .. */ 386 _Thread_queue_Enter_critical_section( &the_cond->Wait_queue ); 387 386 388 _Thread_queue_Enqueue( &the_cond->Wait_queue, 0 ); 387 389
Note: See TracChangeset
for help on using the changeset viewer.