File: std_lock_guard.cpp

package info (click to toggle)
upx-ucl 4.2.4-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 16,168 kB
  • sloc: ansic: 99,906; cpp: 60,585; asm: 32,273; python: 1,573; makefile: 1,353; sh: 1,143
file content (10 lines) | stat: -rw-r--r-- 184 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
// Copyright (C) Markus Franz Xaver Johannes Oberhumer

#include <mutex>

static std::mutex lock_mutex;

int main() {
    std::lock_guard<std::mutex> lock(lock_mutex);
    return 0;
}