acme
Foundational cross-platform layer of the ca2 framework
Loading...
Searching...
No Matches
synchronous_lock.h
1#pragma once
2
3
4#include "acme/parallelization/single_lock.h"
6
7#define SYNCHRONOUS_LOCK_SUFFIX __FILE__, __LINE__
8#define DEFAULT_SYNCHRONOUS_LOCK_SUFFIX this, __FILE__, __LINE__
9
10
11class CLASS_DECL_ACME synchronous_lock :
12 public single_lock
13{
14public:
15
16
17 explicit synchronous_lock(particle * pparticle, const ::subparticle * psubparticleContext = nullptr, const_char_pointer pszFile = nullptr, ::i32 iLine = -1) :
18 single_lock(pparticle, true, psubparticleContext, pszFile, iLine)
19 {
20
21
22 }
23
24
25
26};
27
28
29class CLASS_DECL_ACME _synchronous_lock :
30 public _single_lock
31{
32public:
33
34
35 explicit _synchronous_lock(::particle * pparticle, const ::subparticle * psubparticleContext = nullptr, const_char_pointer pszFile = nullptr, ::i32 iLine = -1) :
36 _single_lock(pparticle, true, psubparticleContext, pszFile, iLine)
37 {
38
39
40 }
41
42
43};
44
45
46
Definition particle.h:95