acme
Foundational cross-platform layer of the ca2 framework
Loading...
Searching...
No Matches
_impl_synchronization_result.h
1//
2// _impl_synchronization_result.h
3// acme
4//
5// Created by Camilo Sasuke on 2021-05-11 23:45 BRT <3ThomasBS_!!.
6// Copyright (c) 2021 Camilo Sasuke Thomas Borregaard Soerensen. All rights reserved.
7//
8#pragma once
9
10
11
12
13//inline bool synchronization_result::abandoned() const
14//{
15//
16// return m_esynchronizationresult >= e_synchronization_result_abandoned_base
17// && m_esynchronizationresult < (e_synchronization_result_abandoned_base + MAXIMUM_SYNCHRONIZING_OBJECTS);
18//
19//}
20
21
22//inline ::collection::index synchronization_result::abandoned_index() const
23//{
24//
25// if (!abandoned())
26// {
27//
28// return -1;
29//
30// }
31//
32// return m_esynchronizationresult - e_synchronization_result_abandoned_base;
33//
34//}
35
36
37//inline bool synchronization_result::error() const
38//{
39//
40// return m_esynchronizationresult == e_synchronization_result_error;
41//
42//}
43
44
45//inline bool synchronization_result::bad_thread() const
46//{
47//
48// return m_esynchronizationresult == e_synchronization_result_bad_thread;
49//
50//}
51
52
53//inline bool synchronization_result::timed_out() const
54//{
55//
56// return m_esynchronizationresult == e_synchronization_result_timed_out;
57//
58//}
59
60
61//inline bool synchronization_result::signaled() const
62//{
63//
64// return m_esynchronizationresult >= e_synchronization_result_signaled_base &&
65// m_esynchronizationresult < (e_synchronization_result_signaled_base + MAXIMUM_SYNCHRONIZING_OBJECTS);
66//
67//}
68
69
70
71//inline bool synchronization_result::succeeded() const
72//{
73//
74// return signaled();
75//
76//}
77
78
79//inline ::collection::index synchronization_result::signaled_index() const
80//{
81//
82// if (!signaled())
83// {
84//
85// return -1;
86//
87// }
88//
89// return m_esynchronizationresult - e_synchronization_result_signaled_base;
90//
91//}
92//
93
94