You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
328 B
C
25 lines
328 B
C
2 years ago
|
//
|
||
|
// Created by anton on 6/24/22.
|
||
|
//
|
||
|
|
||
|
#ifndef PMP_HELPERS_H
|
||
|
#define PMP_HELPERS_H
|
||
|
|
||
|
#include <mutex>
|
||
|
|
||
|
|
||
|
#define NOT_REACHED() assert(0)
|
||
|
|
||
|
|
||
|
#define WITH_LOCK(lock_name) std::lock_guard<std::mutex> lock_name ## _guard(lock_name)
|
||
|
|
||
|
|
||
|
|
||
|
namespace pmp::core {
|
||
|
typedef uint64_t u64;
|
||
|
typedef int64_t i64;
|
||
|
|
||
|
}
|
||
|
|
||
|
#endif //PMP_HELPERS_H
|