Skip to content

RAII wrappers for mutex and critical section #9

@electretmike

Description

@electretmike

It would be nice if there were RAII wrappers for mutex and ciritical section. Using them could look like:

{
  CiriticalSection cs;
  // Do things inside critical section
}

Same for a mutex:

{
  MutexLock lock(mutex);
  // Do things protected by mutex
}

Would something like that be in scope for this library?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions