在线文档教程

TimedMutex

C++ concepts: TimedMutex

The TimedMutex concept extends the TimedLockable concept to include inter-thread synchronization.

Requirements

  • TimedLockable

Additionally, for object m of TimedMutex type.

  • The expression m.try_lock_for(duration) has the following properties

Library types

The following standard library types satisfy TimedMutex:

  • std::timed_mutex

See also

  • Thread support library

© cppreference.com

Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.

http://en.cppreference.com/w/cpp/concept/TimedMutex