_lock
Acquires a multi-thread lock.
Important
This function is obsolete. Beginning in Visual Studio 2015, it is not available in the CRT.
Syntax
void __cdecl _lock
int locknum
);
Parameters
locknum
[in] The identifier of the lock to acquire.
Remarks
If the lock has already been acquired, this method acquires the lock anyway and causes an internal C run-time (CRT) error. If the method can't acquire a lock, it exits with a fatal error and sets the error code to _RT_LOCK
.
Requirements
Source: mlock.c
See also
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: Under hela 2024 kommer vi att fasa ut GitHub-problem som feedbackmekanism för innehåll och ersätta det med ett nytt feedbacksystem. Mer information finns i:Skicka och visa feedback för