std::recursive_mutex
De cppreference.com
<metanoindex/>
<tbody> </tbody>| Definido no cabeçalho <mutex>
|
||
class recursive_mutex; |
(desde C++11) | |
A classe
recursive_mutex é um primitivo de sincronização que pode ser usado para proteger os dados compartilhados de ser acessado simultaneamente por vários segmentos.Original:
The
recursive_mutex class is a synchronization primitive that can be used to protect shared data from being simultaneously accessed by multiple threads.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
recursive_mutex ofertas exclusivas, semântica de propriedade recursiva:Original:
recursive_mutex offers exclusive, recursive ownership semantics:The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
- Um segmento chamado' possui um
recursive_mutexpor um período de tempo que começa quando ele chama com êxito oulockoutry_lock. Durante este período, a linha poderá fazer chamadas adicionais paralockoutry_lock. O período de posse termina quando o segmento faz um número correspondente de chamadas paraunlock.Original:A calling thread owns arecursive_mutexfor a period of time that starts when it successfully calls eitherlockortry_lock. During this period, the thread may make additional calls tolockortry_lock. The period of ownership ends when the thread makes a matching number of calls tounlock.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - Quando um segmento possui um
recursive_mutex, todos os outros segmentos irá bloquear (para chamadas paralock) ou receber um valor de retornofalse(paratry_lock) se tentarem reivindicar a posse dorecursive_mutex.Original:When a thread owns arecursive_mutex, all other threads will block (for calls tolock) or receive afalsereturn value (fortry_lock) if they attempt to claim ownership of therecursive_mutex.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - O número máximo de vezes que um
recursive_mutexpode ser bloqueado não é especificado, mas após esse número é atingido, as chamadas paralockvai jogar std::system_error e chama atry_lockvoltaráfalse.Original:The maximum number of times that arecursive_mutexmay be locked is unspecified, but after that number is reached, calls tolockwill throw std::system_error and calls totry_lockwill returnfalse.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
O comportamento de um programa é indefinido se um
recursive_mutex é destruído enquanto ainda pertence por alguma thread. A classe recursive_mutex não é copiável.Original:
The behavior of a program is undefined if a
recursive_mutex is destroyed while still owned by some thread. The recursive_mutex class is non-copyable.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Tipos de membro
Tipo de membro
Original: Member type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Definition |
native_handle_type
|
Definida pela implementação
Original: implementation-defined The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
