| 2481 | |
| 2482 | |
| 2483 | int ISC_mutex_unlock(struct mtx* mutex) |
| 2484 | { |
| 2485 | /************************************** |
| 2486 | * |
| 2487 | * I S C _ m u t e x _ u n l o c k ( W I N _ N T ) |
| 2488 | * |
| 2489 | ************************************** |
| 2490 | * |
| 2491 | * Functional description |
| 2492 | * Release a mutex. |
| 2493 | * |
| 2494 | **************************************/ |
| 2495 | |
| 2496 | if (mutex->mtx_fast.lpSharedInfo) { |
| 2497 | return !leaveFastMutex(&mutex->mtx_fast); |
| 2498 | } |
| 2499 | |
| 2500 | return !ReleaseMutex(mutex->mtx_fast.hEvent); |
| 2501 | } |
| 2502 | |
| 2503 | |
| 2504 | void ISC_mutex_set_spin_count (struct mtx *mutex, ULONG spins) |
no test coverage detected