Table of Contents

ObtainMutex Procedure

Codeunit Function Mutex Mgt

Obtains a mutex.

Signature

ObtainMutex(FunctionCode: Code[20]; Description: Text[50]; WithCommit: Boolean)

Parameters

FunctionCode Code[20]

The unique code for this mutex. Only one mutex per Function Code can be held at a given time.

Description Text[50]

The description for this mutex. Must be the same as configured for this mutex.

WithCommit Boolean

If this is true, a commit is performed after the mutex is obtained. This minimizes locks, but can result in abandoned mutexes.

Remarks

If the function that created this mutex has specified a timeout, the WithCommit must be set to true.

This documentation is generated from Smart Toolbox v27.1