Function Mutex Mgt
Handles Function Mutexes. These mutexes can be used to ensure that only one session is performing one task at a given time.
Object Definition
Object Type | Codeunit |
Object ID | 70327090 |
Object Name | QWETB Function Mutex Mgt |
Procedures
Name | Description |
---|---|
ForceReleaseMutex(Record "QWETB Function Mutex") | Use this function to release a mutex by force, even if it is held by another session. This can be useful when a session has died without releasing mutex. |
IsMutexTaken(Code[20]): Boolean | Use this function to check if a mutex is obtained by someone (could also be obtained in current session). |
ObtainMutex(Code[20]; Text[50]; Boolean) | Obtains a mutex. |
ReleaseAllMutexesInThisSession(Boolean) | Releases all mutexes that is obtained in the current session. |
ReleaseMutex(Code[20]; Text[50]; Boolean) | Releases a mutex. |
RemoveOrphanedMutex() | Removes any orphaned mutexes. A mutex is considered as orphaned/abandoned if the session that obtained the mutex does not exist any more. |
Events
Name | Description |
---|---|
OnAddFunctions(Codeunit "QWETB Function Mutex") | Use this event to add custom mutexes. Use the Add() procedure on the provided codeunit to add new function mutex codes. |
Deprecated Events
Name | Description |
---|---|
OnAddCustomFunctions(Record "QWETB Function Mutex" temporary) | Use this event to add custom mutexes. Use the AddFunction() procedure on the provided record to add new function mutex codes. |
This documentation is generated from Smart Toolbox v27.0