Releases ownership of the specified mutex object.
Kernel.bdh
ReleaseMutex(in hMutex: number): boolean;
true if successful
false otherwise
Parameter | Description |
---|---|
hMutex | Handle of the mutex object |
dcltrans transaction TCloseHandle var hMutex: number; begin hMutex := CreateMutex("MutexObject"); write("mutex object created"); writeln; WaitForSingleObject(hMutex, INFINITE); ReleaseMutex(hMutex); write("mutex object released"); writeln; CloseHandle(hMutex); write("handle to mutex object closed"); writeln; end TCloseHandle;
mutex object created mutex object released handle to mutex object closed
Trans.bdf, MutexLogin.bdf