MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / eventFini

Method eventFini

src/common/isc_sync.cpp:643–673  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

641
642
643void SharedMemoryBase::eventFini(event_t* event)
644{
645/**************************************
646 *
647 * I S C _ e v e n t _ f i n i
648 *
649 **************************************
650 *
651 * Functional description
652 * Discard an event object.
653 *
654 **************************************/
655
656#if defined(WIN_NT)
657
658 if (event->event_pid == process_id)
659 {
660 CloseHandle(event->event_handle);
661 }
662
663#else // pthread-based event
664
665 if (event->event_pid == getpid())
666 {
667 LOG_PTHREAD_ERROR(pthread_mutex_destroy(event->event_mutex));
668 LOG_PTHREAD_ERROR(pthread_cond_destroy(event->event_cond));
669 }
670
671#endif // OS-dependent choice
672
673}
674
675
676SLONG SharedMemoryBase::eventClear(event_t* event)

Callers 9

purge_ownerMethod · 0.80
purge_processMethod · 0.80
~ProfilerIpcMethod · 0.80
initClientMethod · 0.80
delete_processMethod · 0.80
shutdownMethod · 0.80
clearCacheMethod · 0.80
setupMethod · 0.80

Calls 2

pthread_mutex_destroyFunction · 0.85
pthread_cond_destroyFunction · 0.85

Tested by

no test coverage detected