WizardsToolkit  1.0.7
semaphore.c File Reference
Include dependency graph for semaphore.c:

Go to the source code of this file.

Data Structures

struct  SemaphoreInfo

Functions

WizardExport void AcquireSemaphoreInfo (SemaphoreInfo **semaphore_info)
WizardExport SemaphoreInfoAllocateSemaphoreInfo (void)
WizardExport void DestroySemaphoreInfo (SemaphoreInfo **semaphore_info)
WizardExport void LockSemaphoreInfo (SemaphoreInfo *semaphore_info)
WizardExport void RelinquishSemaphoreInfo (SemaphoreInfo *semaphore_info)
WizardExport WizardBooleanType SemaphoreComponentGenesis (void)
WizardExport void SemaphoreComponentTerminus (void)
WizardExport void UnlockSemaphoreInfo (SemaphoreInfo *semaphore_info)

Function Documentation

WizardExport void LockSemaphoreInfo ( SemaphoreInfo semaphore_info)

Definition at line 261 of file semaphore.c.

References SemaphoreInfo::signature, WizardSignature, SemaphoreInfo::mutex, ThrowFatalException, ResourceFatalError, SemaphoreInfo::reference_count, IsWizardThreadEqual(), SemaphoreInfo::id, WizardFalse, and GetWizardThreadId().

Referenced by DestroyBlob(), ConfigureComponentTerminus(), GetConfigureInfo(), GetConfigureInfoList(), GetConfigureList(), InitializeConfigureList(), ClearWizardException(), CatchException(), DestroyExceptionInfo(), InheritException(), AcquireFileLock(), DestroyFileInfo(), AppendValueToLinkedList(), ClearLinkedList(), DestroyHashmap(), DestroyLinkedList(), GetLastValueInLinkedList(), GetNextKeyInHashmap(), GetNextValueInHashmap(), GetNextValueInLinkedList(), GetValueFromHashmap(), GetValueFromLinkedList(), InsertValueInLinkedList(), InsertValueInSortedLinkedList(), LinkedListToArray(), IncreaseHashmapCapacity(), PutEntryInHashmap(), RemoveElementByValueFromLinkedList(), RemoveElementFromLinkedList(), RemoveEntryFromHashmap(), RemoveLastElementFromLinkedList(), ResetHashmapIterator(), ResetLinkedListIterator(), LocaleComponentTerminus(), CloseWizardLog(), GetLogInfo(), GetLogInfoList(), GetLogList(), InitializeLogList(), LogComponentTerminus(), LogWizardEventList(), SetLogEventMask(), SetLogFormat(), AcquireWizardMemory(), DestroyWizardMemory(), RelinquishWizardMemory(), ResizeWizardMemory(), GetMimeInfo(), GetMimeInfoList(), GetMimeList(), InitializeMimeList(), MimeComponentTerminus(), DestroyRandomInfo(), GenerateEntropicChaos(), GetEntropyFromReservoir(), SaveEntropyToReservoir(), SetRandomKey(), AcquireUniqueFileResource(), AcquireWizardResource(), GetWizardResource(), GetWizardResourceLimit(), ListWizardResourceInfo(), RelinquishWizardResource(), ResourceComponentTerminus(), SetWizardResourceLimit(), AddValueToSplayTree(), CloneSplayTree(), DeleteNodeByValueFromSplayTree(), DeleteNodeFromSplayTree(), DestroySplayTree(), GetNextKeyInSplayTree(), GetNextValueInSplayTree(), GetValueFromSplayTree(), RemoveNodeByValueFromSplayTree(), RemoveNodeFromSplayTree(), ResetSplayTree(), and ResetSplayTreeIterator().

WizardExport void RelinquishSemaphoreInfo ( SemaphoreInfo semaphore_info)

Definition at line 315 of file semaphore.c.

References SemaphoreInfo::signature, WizardSignature, and UnlockSemaphoreInfo().

WizardExport WizardBooleanType SemaphoreComponentGenesis ( void  )

Definition at line 340 of file semaphore.c.

References LockWizardMutex(), UnlockWizardMutex(), and WizardTrue.

Referenced by WizardsToolkitGenesis().

WizardExport void SemaphoreComponentTerminus ( void  )

Definition at line 365 of file semaphore.c.

Referenced by WizardsToolkitTerminus().

WizardExport void UnlockSemaphoreInfo ( SemaphoreInfo semaphore_info)

Definition at line 391 of file semaphore.c.

References SemaphoreInfo::signature, WizardSignature, IsWizardThreadEqual(), SemaphoreInfo::id, WizardFalse, SemaphoreInfo::reference_count, SemaphoreInfo::mutex, ThrowFatalException, and ResourceFatalError.

Referenced by DestroyBlob(), ConfigureComponentTerminus(), GetConfigureInfo(), GetConfigureInfoList(), GetConfigureList(), InitializeConfigureList(), ClearWizardException(), CatchException(), DestroyExceptionInfo(), InheritException(), AcquireFileLock(), DestroyFileInfo(), AppendValueToLinkedList(), ClearLinkedList(), DestroyHashmap(), DestroyLinkedList(), GetLastValueInLinkedList(), GetNextKeyInHashmap(), GetNextValueInHashmap(), GetNextValueInLinkedList(), GetValueFromHashmap(), GetValueFromLinkedList(), InsertValueInLinkedList(), InsertValueInSortedLinkedList(), LinkedListToArray(), IncreaseHashmapCapacity(), PutEntryInHashmap(), RemoveElementByValueFromLinkedList(), RemoveElementFromLinkedList(), RemoveEntryFromHashmap(), RemoveLastElementFromLinkedList(), ResetHashmapIterator(), ResetLinkedListIterator(), LocaleComponentTerminus(), CloseWizardLog(), GetLogInfo(), GetLogInfoList(), GetLogList(), InitializeLogList(), LogComponentTerminus(), LogWizardEventList(), SetLogEventMask(), SetLogFormat(), AcquireWizardMemory(), DestroyWizardMemory(), RelinquishWizardMemory(), ResizeWizardMemory(), GetMimeInfo(), GetMimeInfoList(), GetMimeList(), InitializeMimeList(), MimeComponentTerminus(), DestroyRandomInfo(), GenerateEntropicChaos(), GetEntropyFromReservoir(), SaveEntropyToReservoir(), SetRandomKey(), AcquireUniqueFileResource(), AcquireWizardResource(), GetWizardResource(), GetWizardResourceLimit(), ListWizardResourceInfo(), RelinquishWizardResource(), ResourceComponentTerminus(), SetWizardResourceLimit(), RelinquishSemaphoreInfo(), AddValueToSplayTree(), CloneSplayTree(), DeleteNodeByValueFromSplayTree(), DeleteNodeFromSplayTree(), DestroySplayTree(), GetNextKeyInSplayTree(), GetNextValueInSplayTree(), GetValueFromSplayTree(), RemoveNodeByValueFromSplayTree(), RemoveNodeFromSplayTree(), ResetSplayTree(), and ResetSplayTreeIterator().