acme
Foundational cross-platform layer of the ca2 framework
Loading...
Searching...
No Matches
_impl.h
1#pragma once
2
3
4
5
6
7
8
9//inline thread_parameter::thread_parameter(const matter * psimpleobject)
10//{
11//
12// m_psimpleobject = (matter *)psimpleobject;
13//
14// m_psimpleobject->increment_reference_count();
15//
16//}
17
18
19
20
21//template < typename PRED >
22//auto sync_predicate(void (* pfnBranch )(::matter * pobjectTask, enum_priority), PRED pred, class ::time timeTimeout, enum_priority epriority)
23//{
24//
25// auto pobjectTask = __sync_predicate(pred);
26//
27// pfnBranch(pobjectTask, epriority);
28//
29// pobjectTask->m_happening.wait(timeTimeout);
30//
31// return pobjectTask;
32//
33//}
34//
35
36//template < typename PRED >
37//::thread * fork(PRED pred)
38//{
39//
40// return ::fork(::get_task(), pred);
41//
42//}
43
44
45
46
47
48template < typename PRED >
49void async_predicate(void (* pfnBranch )(::matter * pobjectTask, enum_priority), PRED pred, enum_priority epriority)
50{
51
52 auto pobjectTask = __routine(pred);
53
54 pfnBranch(pobjectTask, epriority);
55
56}
57
58//
59//inline ::thread* get_task(itask idthread)
60//{
61//
62// return (::thread*) system()->get_task(idthread);
63//
64//}
65//
66
67
68//inline class ::time wait::now() { return get_integral_millisecond(); }
69
70
71
72
73//DEFINE_COMPARISON_WITH_TIME(inline, wait)
74
75
Definition matter.h:17