• Logo
    Mir
  • canonical.com/mir
  • More resources
    • Discourse
    • Matrix
    • GitHub
Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode Skip to content
Mir v2.23.0-332-gbb75a3c6e5 documentation
Mir v2.23.0-332-gbb75a3c6e5 documentation
  • Tutorials
    • Getting started with Mir
    • Write your first Wayland compositor
  • How-to guides
    • How to handle keyboard input
    • How to integrate a custom Wayland protocol
    • How to specify startup applications
    • Specifying CSD/SSD preference
  • Explanation
    • Accessibility methods
    • User libraries
    • Using Mir to build a desktop environment
    • Graphics Driver Quriks
    • Energy efficiency
    • Performance
    • Platform support
    • Security
    • Window positions under Wayland
  • Reference
    • Mir C++ API documentation
    • Compositors built with Mir
    • Introducing the Miral API
    • Linux kernel requirements for Mir
  • Configuring Mir
    • How-to guides
      • How to calibrate a touchscreen device
      • How to enable remote desktop
      • How to enable screencasting
      • How to use on-screen keyboards
    • Explanation
      • Mir component reports
    • Reference
      • Mir configuration options
  • Contributing to Mir
    • How-to guides
      • How to debug Mir snaps
      • How to enable gpu-2404 on a device
      • Getting involved in Mir
      • How to test Mir for a release
      • How to update symbols map files
      • Using checkbox-mir to validate your snap graphical environment
    • Explanation
      • Architecture
      • Input Platform APIs
      • Libraries
    • Reference
      • Mir continuous integration
      • Mir C++ style guide
      • A brief guide for versioning symbols in the Mir DSOs
Back to top

Class RecursiveReadWriteMutex¶

  • Defined in File recursive_read_write_mutex.h

Nested Relationships¶

Nested Types¶

  • Struct RecursiveReadWriteMutex::ThreadLockCount

Class Documentation¶

class RecursiveReadWriteMutex¶

a recursive read-write mutex.

Note that a write lock can be acquired if no other threads have a read lock.

Public Functions

void read_lock()¶
void read_unlock()¶
void write_lock()¶
void write_unlock()¶
Copyright © 2025, Canonical Ltd.
Contents
  • Class RecursiveReadWriteMutex
    • Nested Relationships
      • Nested Types
    • Class Documentation
      • mir::RecursiveReadWriteMutex
        • read_lock()
        • read_unlock()
        • write_lock()
        • write_unlock()