* hb_thread_has_exited() ************************************************************************ * Returns 1 if the thread can be joined right away, 0 otherwise. ***********************************************************************/
| 1069 | * Returns 1 if the thread can be joined right away, 0 otherwise. |
| 1070 | ***********************************************************************/ |
| 1071 | int hb_thread_has_exited( hb_thread_t * t ) |
| 1072 | { |
| 1073 | int exited; |
| 1074 | |
| 1075 | hb_lock( t->lock ); |
| 1076 | exited = t->exited; |
| 1077 | hb_unlock( t->lock ); |
| 1078 | |
| 1079 | return exited; |
| 1080 | } |
| 1081 | |
| 1082 | /************************************************************************ |
| 1083 | * Portable mutex implementation |
no test coverage detected