Mercurial > projects > ldc
comparison dmd/root/async.h @ 1195:e961851fb8be
Merged DMD 1.042.
author | Tomas Lindquist Olsen <tomas.l.olsen gmail.com> |
---|---|
date | Fri, 03 Apr 2009 17:59:34 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
1194:1853dcd9b944 | 1195:e961851fb8be |
---|---|
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 |