Mercurial > projects > ldc
comparison dmd2/root/async.h @ 1452:638d16625da2
LDC 2 compiles again.
author | Robert Clipsham <robert@octarineparrot.com> |
---|---|
date | Sat, 30 May 2009 17:23:32 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
1423:42bd767ec5a4 | 1452:638d16625da2 |
---|---|
1 | |
2 // Copyright (c) 2009-2009 by Digital Mars | |
3 // All Rights Reserved | |
4 // written by Walter Bright | |
5 // http://www.digitalmars.com | |
6 // License for redistribution is by either the Artistic License | |
7 // in artistic.txt, or the GNU General Public License in gnu.txt. | |
8 // See the included readme.txt for details. | |
9 | |
10 #ifndef ASYNC_H | |
11 #define ASYNC_H | |
12 | |
13 #if __DMC__ | |
14 #pragma once | |
15 #endif | |
16 | |
17 | |
18 /******************* | |
19 * Simple interface to read files asynchronously in another | |
20 * thread. | |
21 */ | |
22 | |
23 struct AsyncRead | |
24 { | |
25 static AsyncRead *create(size_t nfiles); | |
26 void addFile(File *file); | |
27 void start(); | |
28 int read(size_t i); | |
29 static void dispose(AsyncRead *); | |
30 }; | |
31 | |
32 | |
33 #endif |