MCPcopy Create free account
hub / github.com/cppla/ServerStatus / lock_destroy

Function lock_destroy

server/src/system.c:465–475  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

463}
464
465void lock_destroy(LOCK lock)
466{
467#if defined(CONF_FAMILY_UNIX)
468 pthread_mutex_destroy((LOCKINTERNAL *)lock);
469#elif defined(CONF_FAMILY_WINDOWS)
470 DeleteCriticalSection((LPCRITICAL_SECTION)lock);
471#else
472 #error not implemented on this platform
473#endif
474 mem_free(lock);
475}
476
477int lock_try(LOCK lock)
478{

Callers

nothing calls this directly

Calls 1

mem_freeFunction · 0.85

Tested by

no test coverage detected