◐ Shell
clean mode source ↗

<div class="t-tr-text">C + +: concetti<div class="t-tr-dropdown"><div><div><div class="t-tr-dropdown-arrow-border"></div><div class="t-tr-dropdown-arrow"></div><div class="t-tr-dropdown-h">Original:</div><div class="t-tr-dropdown-orig">C++ concepts:</div><div class="t-tr-dropdown-notes">The text has been machine-translated via [http://translate.google.com Google Translate].<br/> You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.</div></div></div></div></div> BasicLockable

Da cppreference.com.

Questa pagina è stata tradotta in modo automatico dalla versione in ineglese della wiki usando Google Translate.

La traduzione potrebbe contenere errori e termini strani. Muovi il puntatore sopra al testo per vedere la versione originale. Puoi aiutarci a correggere gli gli errori. Per ulteriori istruzioni clicca qui.

Click here for the English version of this page

<metanoindex/>

Il concetto BasicLockable descrive le caratteristiche minime di tipi che forniscono in esclusiva semantica di blocco per gli agenti di esecuzione (thread ad esempio).

Original:

The BasicLockable concept describes the minimal characteristics of types that provide exclusive blocking semantics for execution agents (i.e. threads).

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Requisiti

Per L tipo da BasicLockable, le seguenti condizioni devono essere soddisfatti per un oggetto di tipo m L:

Original:

For type L to be BasicLockable, the following conditions have to be satisfied for an object m of type L:

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Expression Requires Effects
m.lock() Blocks until a lock can be obtained for the current execution agent. If an exception is thrown, no lock is obtained.
m.unlock() The current execution agent should hold the lock m. Releases the lock held by the execution agent. Throws no exceptions.

Vedi anche