ThreadSchedule 4.1.0
Modern C++ thread management library
Loading...
Searching...
No Matches
lifetime.hpp
Go to the documentation of this file.
1#pragma once
2
11
12#if defined(__has_cpp_attribute)
13# if __has_cpp_attribute(clang::lifetimebound)
14# define THREADSCHEDULE_LIFETIMEBOUND [[clang::lifetimebound]]
15# endif
16# if __has_cpp_attribute(gsl::Pointer)
17# define THREADSCHEDULE_POINTER [[gsl::Pointer]]
18# endif
19# if __has_cpp_attribute(gsl::Owner)
20# define THREADSCHEDULE_OWNER [[gsl::Owner]]
21# endif
22# if __has_cpp_attribute(clang::noescape)
23# define THREADSCHEDULE_NOESCAPE [[clang::noescape]]
24# endif
25#endif
26
27#ifndef THREADSCHEDULE_LIFETIMEBOUND
28# define THREADSCHEDULE_LIFETIMEBOUND
29#endif
30
31#ifndef THREADSCHEDULE_POINTER
32# define THREADSCHEDULE_POINTER
33#endif
34#ifndef THREADSCHEDULE_OWNER
35# define THREADSCHEDULE_OWNER
36#endif
37#ifndef THREADSCHEDULE_NOESCAPE
38# define THREADSCHEDULE_NOESCAPE
39#endif