| 1114 | } |
| 1115 | |
| 1116 | void hb_lock_close( hb_lock_t ** _l ) |
| 1117 | { |
| 1118 | hb_lock_t * l = *_l; |
| 1119 | |
| 1120 | if (l == NULL) |
| 1121 | { |
| 1122 | return; |
| 1123 | } |
| 1124 | pthread_mutex_destroy( &l->mutex ); |
| 1125 | free( l ); |
| 1126 | |
| 1127 | *_l = NULL; |
| 1128 | } |
| 1129 | |
| 1130 | void hb_lock( hb_lock_t * l ) |
| 1131 | { |
no outgoing calls
no test coverage detected