os_thread.h
Go to the documentation of this file.
1 // this is for emacs file handling -*- mode: c++; indent-tabs-mode: nil -*-
2 
3 // -- BEGIN LICENSE BLOCK ----------------------------------------------
4 // This file is part of FZIs ic_workspace.
5 //
6 // This program is free software licensed under the LGPL
7 // (GNU LESSER GENERAL PUBLIC LICENSE Version 3).
8 // You can find a copy of this license in LICENSE folder in the top
9 // directory of the source code.
10 //
11 // © Copyright 2016 FZI Forschungszentrum Informatik, Karlsruhe, Germany
12 //
13 // -- END LICENSE BLOCK ------------------------------------------------
14 
15 //----------------------------------------------------------------------
24 //----------------------------------------------------------------------
25 #ifndef ICL_CORE_OS_THREAD_H_INCLUDED
26 #define ICL_CORE_OS_THREAD_H_INCLUDED
27 
28 #include "icl_core/BaseTypes.h"
29 #include "icl_core/os_ns.h"
30 
31 #if defined _SYSTEM_POSIX_
33 #elif defined _SYSTEM_WIN32_
35 #else
36 # error "No os_thread implementation defined for this platform."
37 #endif
38 
39 #ifdef _IC_BUILDER_DEPRECATED_STYLE_
40 # include "icl_core/Deprecate.h"
41 #endif
42 
43 namespace icl_core {
44 
45 #ifdef _IC_BUILDER_DEPRECATED_STYLE_
48 #endif
51 
52 namespace os {
53 
54 inline ThreadId threadSelf()
55 {
57 }
58 
59 inline pid_t getpid()
60 {
62 }
63 
65 #ifdef _IC_BUILDER_DEPRECATED_STYLE_
66 
67 inline ThreadId ThreadSelf() ICL_CORE_GCC_DEPRECATE;
68 inline ICL_CORE_VC_DEPRECATE_STYLE ThreadId ThreadSelf()
69 { return threadSelf(); }
70 
71 #endif
72 
74 }
75 }
76 
77 #endif
ICL_CORE_OS_IMPL_NS::ThreadId ThreadId
Definition: os_thread.h:49
signed int int32_t
Definition: msvc_stdint.h:90
#define ICL_CORE_VC_DEPRECATE_STYLE
Definition: Deprecate.h:53
#define ICL_CORE_VC_DEPRECATE
Definition: Deprecate.h:35
Contains macros to deprecate classes, types, functions and variables.
Posix implementation of the global thread functions.
Definition of the implementation namespace for global functions.
pid_t getpid()
Definition: os_thread.h:59
Contains Interface base classes and base types.
ThreadId threadSelf()
Definition: os_thread.h:54
ICL_CORE_VC_DEPRECATE SetRelation tSetRelation ICL_CORE_GCC_DEPRECATE
Definition: SetHelper.h:42
Win32 implementation of the global thread functions.
int32_t ThreadPriority
Definition: os_thread.h:50


fzi_icl_core
Author(s):
autogenerated on Mon Jun 10 2019 13:17:58