Condividi tramite


_lock

Acquires a multi-thread lock.

void __cdecl _lock
   int locknum
);

Parameters

  • [in] locknum
    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 cannot acquire a lock, it exits with a fatal error and sets the error code to _RT_LOCK.

Requirements

Source: mlock.c

See Also

Reference

_unlock

Other Resources

Alphabetical Function Reference

Change History

Date

History

Reason

June 2010

Added this document.

Information enhancement.