| 475 | } |
| 476 | |
| 477 | int lock_try(LOCK lock) |
| 478 | { |
| 479 | #if defined(CONF_FAMILY_UNIX) |
| 480 | return pthread_mutex_trylock((LOCKINTERNAL *)lock); |
| 481 | #elif defined(CONF_FAMILY_WINDOWS) |
| 482 | return !TryEnterCriticalSection((LPCRITICAL_SECTION)lock); |
| 483 | #else |
| 484 | #error not implemented on this platform |
| 485 | #endif |
| 486 | } |
| 487 | |
| 488 | void lock_wait(LOCK lock) |
| 489 | { |
nothing calls this directly
no outgoing calls
no test coverage detected