◐ Shell
clean mode source ↗

std::unique_lock::unlock – cppreference.com

Aus cppreference.com

<metanoindex/>

<tbody> </tbody>

void unlock();

(seit C++11)

Entsperrt die zugehörige Mutex .

Original:

Unlocks the associated mutex.

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

std::system_error wird ausgelöst, wenn es keine zugeordnete Mutex oder wenn der Mutex nicht gesperrt ist .

Original:

std::system_error is thrown if there is no associated mutex or if the mutex is not locked.

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

Parameter

(None)

Original:

(none)

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

Rückgabewert

(None)

Original:

(none)

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

Ausnahmen

  • Etwaige Ausnahmen von mutex()->unlock() geworfen

    Original:

    Any exceptions thrown by mutex()->unlock()

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

  • Wenn es keine zugehörige Mutex std::system_error mit einem Fehlercode std::errc::operation_not_permitted

    Original:

    If there is no associated mutex, std::system_error with an error code of std::errc::operation_not_permitted

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

  • Wenn der Mutex nicht gesperrt ist, std::system_error mit einem Fehlercode std::errc::resource_deadlock_would_occur

    Original:

    If the mutex is not locked, std::system_error with an error code of std::errc::resource_deadlock_would_occur

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

Beispiel

Siehe auch

locks the associated mutex
(öffentliche Elementfunktion) [edit]

distanziert die zugehörige Mutex ohne entsperren

Original:

disassociates the associated mutex without unlocking it

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


(öffentliche Elementfunktion) [edit]