Mercurial > projects > dstep
comparison dstep/coreservices/carboncore/DriverSynchronization.d @ 11:07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Sat, 01 Aug 2009 15:03:28 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
10:27e00625790b | 11:07194b026fa4 |
---|---|
1 /** | |
2 * Copyright: Copyright (c) 2009 Jacob Carlborg. | |
3 * Authors: Jacob Carlborg | |
4 * Version: Initial created: Jul 21, 2009 | |
5 * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0) | |
6 */ | |
7 module dstep.coreservices.carboncore.DriverSynchronization; | |
8 | |
9 //import dstep.AvailabilityMacros; | |
10 import dstep.coreservices.carboncore.ConditionalMacros; | |
11 import dstep.coreservices.carboncore.MacTypes; | |
12 | |
13 extern (C) | |
14 { | |
15 ubyte CompareAndSwap (uint oldValue, uint newValue, UInt32* address); | |
16 ubyte TestAndClear (uint bit, char* address); | |
17 ubyte TestAndSet (uint bit, char* address); | |
18 byte IncrementAtomic8 (char* address); | |
19 byte DecrementAtomic8 (char* address); | |
20 byte AddAtomic8 (int amount, char* address); | |
21 ubyte BitAndAtomic8 (uint mask, char* address); | |
22 ubyte BitOrAtomic8 (uint mask, char* address); | |
23 ubyte BitXorAtomic8 (uint mask, char* address); | |
24 short IncrementAtomic16 (SInt16* address); | |
25 short DecrementAtomic16 (SInt16* address); | |
26 short AddAtomic16 (int amount, SInt16* address); | |
27 ushort BitAndAtomic16 (uint mask, UInt16* address); | |
28 ushort BitOrAtomic16 (uint mask, UInt16* address); | |
29 ushort BitXorAtomic16 (uint mask, UInt16* address); | |
30 int IncrementAtomic (SInt32* address); | |
31 int DecrementAtomic (SInt32* address); | |
32 int AddAtomic (int amount, SInt32* address); | |
33 uint BitAndAtomic (uint mask, UInt32* address); | |
34 uint BitOrAtomic (uint mask, UInt32* address); | |
35 uint BitXorAtomic (uint mask, UInt32* address); | |
36 } |