acme
Foundational cross-platform layer of the ca2 framework
Loading...
Searching...
No Matches
_preamble.h
1// Create by camilo on 2021-04-11 00:45 BRT <3TBS_!!
2#pragma once
3
4
5#include "common.h"
6
7
8namespace factory
9{
10
11 class factory;
12
13 using factory_pointer = ::pointer < factory >;
14
15 template < typename TYPE, typename BASE_TYPE >
17
18
19} // namespace factory
20
21#ifndef WINDOWS
22
23
24#define MAXIMUM_WAIT_OBJECTS 64
25
26
27#endif
28
29
30#ifdef __APPLE__
31#include <semaphore.h>
32#endif
33
34#ifdef PARALLELIZATION_PTHREAD
35
36#define CRITICAL_SECTION_FUNCTION_RETURN ::i32
37
38//CRITICAL_SECTION_FUNCTION_RETURN pthread_recursive_mutex_init(pthread_mutex_t* pmutex);
39
40
41#define MAXIMUM_SYNCHRONIZING_OBJECTS 64
42
43using hsynchronization = ::subparticle *;
44
45
46#else
47
48#define MAXIMUM_SYNCHRONIZING_OBJECTS 64
49
50#define CRITICAL_SECTION_FUNCTION_RETURN void
51using hsynchronization = void *;
52
53
54#endif
55
56
57
58#define INVALID_HSYNC_VALUE ((hsynchronization)nullptr)
59
60
61
Definition factory.h:201
Definition factory.h:147
Definition subparticle.h:78