#include "wizard/studio.h"#include "wizard/exception.h"#include "wizard/exception-private.h"#include "wizard/memory_.h"#include "wizard/semaphore.h"#include "wizard/semaphore-private.h"#include "wizard/string_.h"#include "wizard/thread_.h"#include "wizard/thread-private.h"Data Structures | |
| struct | SemaphoreInfo |
Functions | |
| WizardExport void | AcquireSemaphoreInfo (SemaphoreInfo **semaphore_info) |
| WizardExport SemaphoreInfo * | AllocateSemaphoreInfo (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) |
| WizardExport void AcquireSemaphoreInfo | ( | SemaphoreInfo ** | semaphore_info | ) |
References AllocateSemaphoreInfo(), LockWizardMutex(), and UnlockWizardMutex().
Referenced by AcquireUniqueFileResource(), AcquireWizardMemory(), AcquireWizardResource(), ConfigureComponentGenesis(), ConfigureComponentTerminus(), DestroyWizardMemory(), GetWizardResource(), GetWizardResourceLimit(), InitializeConfigureList(), InitializeLogList(), InitializeMimeList(), ListWizardResourceInfo(), LogComponentGenesis(), LogComponentTerminus(), MimeComponentGenesis(), MimeComponentTerminus(), RandomComponentGenesis(), RandomComponentTerminus(), RelinquishWizardResource(), ResourceComponentGenesis(), ResourceComponentTerminus(), and SetWizardResourceLimit().
| WizardExport SemaphoreInfo* AllocateSemaphoreInfo | ( | void | ) |
References GetWizardThreadId(), SemaphoreInfo::id, SemaphoreInfo::mutex, SemaphoreInfo::reference_count, ResetWizardMemory(), ResourceFatalError, SemaphoreInfo::signature, and ThrowFatalException.
Referenced by AcquireFileInfo(), AcquireRandomInfo(), AcquireSemaphoreInfo(), GetBlobInfo(), GetExceptionInfo(), NewHashmap(), NewLinkedList(), and NewSplayTree().
| WizardExport void DestroySemaphoreInfo | ( | SemaphoreInfo ** | semaphore_info | ) |
References LockWizardMutex(), ResourceFatalError, ThrowFatalException, UnlockWizardMutex(), and WizardSignature.
Referenced by ConfigureComponentTerminus(), DestroyBlob(), DestroyExceptionInfo(), DestroyFileInfo(), DestroyHashmap(), DestroyLinkedList(), DestroyRandomInfo(), DestroySplayTree(), DestroyWizardMemory(), IncreaseHashmapCapacity(), LogComponentTerminus(), MimeComponentTerminus(), RandomComponentTerminus(), and ResourceComponentTerminus().
| WizardExport void LockSemaphoreInfo | ( | SemaphoreInfo * | semaphore_info | ) |
References GetWizardThreadId(), SemaphoreInfo::id, IsWizardThreadEqual(), SemaphoreInfo::mutex, SemaphoreInfo::reference_count, ResourceFatalError, SemaphoreInfo::signature, ThrowFatalException, WizardFalse, and WizardSignature.
Referenced by AcquireFileLock(), AcquireUniqueFileResource(), AcquireWizardMemory(), AcquireWizardResource(), AddValueToSplayTree(), AppendValueToLinkedList(), CatchException(), ClearLinkedList(), ClearWizardException(), CloneSplayTree(), CloseWizardLog(), ConfigureComponentTerminus(), DeleteNodeByValueFromSplayTree(), DeleteNodeFromSplayTree(), DestroyBlob(), DestroyExceptionInfo(), DestroyFileInfo(), DestroyHashmap(), DestroyLinkedList(), DestroyRandomInfo(), DestroySplayTree(), DestroyWizardMemory(), GenerateEntropicChaos(), GetConfigureInfo(), GetConfigureInfoList(), GetConfigureList(), GetEntropyFromReservoir(), GetLastValueInLinkedList(), GetLogInfo(), GetLogInfoList(), GetLogList(), GetMimeInfo(), GetMimeInfoList(), GetMimeList(), GetNextKeyInHashmap(), GetNextKeyInSplayTree(), GetNextValueInHashmap(), GetNextValueInLinkedList(), GetNextValueInSplayTree(), GetValueFromHashmap(), GetValueFromLinkedList(), GetValueFromSplayTree(), GetWizardResource(), GetWizardResourceLimit(), IncreaseHashmapCapacity(), InheritException(), InitializeConfigureList(), InitializeLogList(), InitializeMimeList(), InsertValueInLinkedList(), InsertValueInSortedLinkedList(), LinkedListToArray(), ListWizardResourceInfo(), LogComponentTerminus(), LogWizardEventList(), MimeComponentTerminus(), PutEntryInHashmap(), RelinquishWizardMemory(), RelinquishWizardResource(), RemoveElementByValueFromLinkedList(), RemoveElementFromLinkedList(), RemoveEntryFromHashmap(), RemoveLastElementFromLinkedList(), RemoveNodeByValueFromSplayTree(), RemoveNodeFromSplayTree(), ResetHashmapIterator(), ResetLinkedListIterator(), ResetSplayTree(), ResetSplayTreeIterator(), ResizeWizardMemory(), ResourceComponentTerminus(), SaveEntropyToReservoir(), SetLogEventMask(), SetLogFormat(), SetRandomKey(), and SetWizardResourceLimit().
| WizardExport void RelinquishSemaphoreInfo | ( | SemaphoreInfo * | semaphore_info | ) |
References SemaphoreInfo::signature, UnlockSemaphoreInfo(), and WizardSignature.
| WizardExport WizardBooleanType SemaphoreComponentGenesis | ( | void | ) |
References LockWizardMutex(), UnlockWizardMutex(), and WizardTrue.
Referenced by WizardsToolkitGenesis().
| WizardExport void SemaphoreComponentTerminus | ( | void | ) |
Referenced by WizardsToolkitTerminus().
| WizardExport void UnlockSemaphoreInfo | ( | SemaphoreInfo * | semaphore_info | ) |
References SemaphoreInfo::id, IsWizardThreadEqual(), SemaphoreInfo::mutex, SemaphoreInfo::reference_count, ResourceFatalError, SemaphoreInfo::signature, ThrowFatalException, WizardFalse, and WizardSignature.
Referenced by AcquireFileLock(), AcquireUniqueFileResource(), AcquireWizardMemory(), AcquireWizardResource(), AddValueToSplayTree(), AppendValueToLinkedList(), CatchException(), ClearLinkedList(), ClearWizardException(), CloneSplayTree(), CloseWizardLog(), ConfigureComponentTerminus(), DeleteNodeByValueFromSplayTree(), DeleteNodeFromSplayTree(), DestroyBlob(), DestroyExceptionInfo(), DestroyFileInfo(), DestroyHashmap(), DestroyLinkedList(), DestroyRandomInfo(), DestroySplayTree(), DestroyWizardMemory(), GenerateEntropicChaos(), GetConfigureInfo(), GetConfigureInfoList(), GetConfigureList(), GetEntropyFromReservoir(), GetLastValueInLinkedList(), GetLogInfo(), GetLogInfoList(), GetLogList(), GetMimeInfo(), GetMimeInfoList(), GetMimeList(), GetNextKeyInHashmap(), GetNextKeyInSplayTree(), GetNextValueInHashmap(), GetNextValueInLinkedList(), GetNextValueInSplayTree(), GetValueFromHashmap(), GetValueFromLinkedList(), GetValueFromSplayTree(), GetWizardResource(), GetWizardResourceLimit(), IncreaseHashmapCapacity(), InheritException(), InitializeConfigureList(), InitializeLogList(), InitializeMimeList(), InsertValueInLinkedList(), InsertValueInSortedLinkedList(), LinkedListToArray(), ListWizardResourceInfo(), LogComponentTerminus(), LogWizardEventList(), MimeComponentTerminus(), PutEntryInHashmap(), RelinquishSemaphoreInfo(), RelinquishWizardMemory(), RelinquishWizardResource(), RemoveElementByValueFromLinkedList(), RemoveElementFromLinkedList(), RemoveEntryFromHashmap(), RemoveLastElementFromLinkedList(), RemoveNodeByValueFromSplayTree(), RemoveNodeFromSplayTree(), ResetHashmapIterator(), ResetLinkedListIterator(), ResetSplayTree(), ResetSplayTreeIterator(), ResizeWizardMemory(), ResourceComponentTerminus(), SaveEntropyToReservoir(), SetLogEventMask(), SetLogFormat(), SetRandomKey(), and SetWizardResourceLimit().
1.7.1