LeechCraft
0.6.70-17793-g6e56308e78
Modular cross-platform feature rich live environment.
Loading...
Searching...
No Matches
attributes.h
Go to the documentation of this file.
1
/**********************************************************************
2
* LeechCraft - modular cross-platform feature rich internet client.
3
* Copyright (C) 2006-2014 Georg Rudoy
4
*
5
* Distributed under the Boost Software License, Version 1.0.
6
* (See accompanying file LICENSE or copy at https://www.boost.org/LICENSE_1_0.txt)
7
**********************************************************************/
8
9
#pragma once
10
11
#ifdef __clang__
12
#define LC_THREAD_ANNOTATION(x) __attribute__((x))
13
#else
14
#define LC_THREAD_ANNOTATION(x)
15
#endif
16
17
#define GUARDED_BY(m) LC_THREAD_ANNOTATION(guarded_by(m))
18
#define CAPABILITY(s) LC_THREAD_ANNOTATION(capability(s))
19
#define SCOPED_LOCKABLE LC_THREAD_ANNOTATION(scoped_lockable)
20
#define ACQUIRE(...) LC_THREAD_ANNOTATION(acquire_capability(__VA_ARGS__))
21
#define RELEASE(...) LC_THREAD_ANNOTATION(release_capability(__VA_ARGS__))
src
util
threads
attributes.h
Generated by
1.16.1