* hb_cond_init() * hb_cond_close() * hb_cond_wait() * hb_cond_signal() ************************************************************************ * Win9x is not supported by this implementation (SignalObjectAndWait() * only available on Windows 2000/XP). ***********************************************************************/
| 1155 | * only available on Windows 2000/XP). |
| 1156 | ***********************************************************************/ |
| 1157 | hb_cond_t * hb_cond_init() |
| 1158 | { |
| 1159 | hb_cond_t * c = calloc( sizeof( hb_cond_t ), 1 ); |
| 1160 | |
| 1161 | if( c == NULL ) |
| 1162 | return NULL; |
| 1163 | |
| 1164 | pthread_cond_init( &c->cond, NULL ); |
| 1165 | return c; |
| 1166 | } |
| 1167 | |
| 1168 | void hb_cond_close( hb_cond_t ** _c ) |
| 1169 | { |
no outgoing calls
no test coverage detected