acme
Foundational cross-platform layer of the ca2 framework
Loading...
Searching...
No Matches
aaa__2.h
1#pragma once
2
3
4#include "parallelization.h"
5
6
7#include "base_internal.h"
8
9::u32 m_sleep(::u32 seconds);
10
11
12
13
15
16
17
18/*#ifdef cplusplus
19
20template < class T >
21class thread_pointer
22{
23public:
24
25
26 const_char_pointer pszName;
27
28 thread_pointer(const ::scoped_string & scopedstrName)
29 {
30 name = pszName;
31 }
32
33
34 operator T *()
35 {
36
37 return (T *) get_thread_ptr(name);
38
39 }
40
41 T * operator ->()
42 {
43 return operator T *();
44 }
45
46 thread_pointer & operator = (T * pt)
47 {
48
49 set_thread_ptr(name, point);
50
51 return *this;
52
53 }
54
55};
56
57
58template < class T >
59class thread_var
60{
61public:
62
63 const_char_pointer pszName;
64
65 thread_var(const ::scoped_string & scopedstrName)
66 {
67 name = pszName;
68 }
69
70
71 operator T ()
72 {
73
74 return (T) get_thread_int(name);
75
76 }
77
78 thread_var & operator = (T t)
79 {
80
81 set_thread_int(name, t);
82
83 return *this;
84
85 }
86
87
88};
89
90
91#endif
92
93
94
95*/
96
97
98#ifdef __OBJC__
99
100#import "_m.h"
101
102#else
103
104struct UIWindow;
105
106#endif
107
108
109
110
111
112#include "windowing.h"
113
114