description | title | ms.date | api_name | api_location | api_type | topic_type | f1_keywords | helpviewer_keywords | ms.assetid | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Learn more about: _lock |
_lock |
11/04/2016 |
|
|
|
|
|
|
29f77c37-30de-4b3d-91b6-030216e645a6 |
Acquires a multi-thread lock.
Important
This function is obsolete. Beginning in Visual Studio 2015, it is not available in the CRT.
void __cdecl _lock
int locknum
);
locknum
[in] The identifier of the lock to acquire.
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
.
Source: mlock.c