diff options
Diffstat (limited to 'LuaSL/src/LuaSL_threads.h')
-rw-r--r-- | LuaSL/src/LuaSL_threads.h | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/LuaSL/src/LuaSL_threads.h b/LuaSL/src/LuaSL_threads.h deleted file mode 100644 index 9a11b5c..0000000 --- a/LuaSL/src/LuaSL_threads.h +++ /dev/null | |||
@@ -1,54 +0,0 @@ | |||
1 | /* This code is heavily based on luaproc. | ||
2 | * | ||
3 | * The luaproc copyright notice and license is - | ||
4 | |||
5 | *************************************************** | ||
6 | |||
7 | Copyright 2008 Alexandre Skyrme, Noemi Rodriguez, Roberto Ierusalimschy | ||
8 | |||
9 | Permission is hereby granted, free of charge, to any person obtaining a copy | ||
10 | of this software and associated documentation files (the "Software"), to deal | ||
11 | in the Software without restriction, including without limitation the rights | ||
12 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
13 | copies of the Software, and to permit persons to whom the Software is | ||
14 | furnished to do so, subject to the following conditions: | ||
15 | |||
16 | The above copyright notice and this permission notice shall be included in | ||
17 | all copies or substantial portions of the Software. | ||
18 | |||
19 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
20 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
21 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
22 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
23 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
24 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
25 | THE SOFTWARE. | ||
26 | |||
27 | **************************************************** | ||
28 | * | ||
29 | * Additions and changes Copyright 2012 by David Seikel, using the above license. | ||
30 | */ | ||
31 | |||
32 | #ifndef __LUASL_THREADS_H__ | ||
33 | #define __LUASL_THREADS_H__ | ||
34 | |||
35 | /* scheduler function return constants */ | ||
36 | #define LUAPROC_SCHED_OK 0 | ||
37 | #define LUAPROC_SCHED_SOCKET_ERROR -1 | ||
38 | #define LUAPROC_SCHED_SETSOCKOPT_ERROR -2 | ||
39 | #define LUAPROC_SCHED_BIND_ERROR -3 | ||
40 | #define LUAPROC_SCHED_LISTEN_ERROR -4 | ||
41 | #define LUAPROC_SCHED_FORK_ERROR -5 | ||
42 | #define LUAPROC_SCHED_PTHREAD_ERROR -6 | ||
43 | #define LUAPROC_SCHED_INIT_ERROR -7 | ||
44 | |||
45 | |||
46 | void luaprocInit(void); | ||
47 | int sched_create_worker(void); | ||
48 | void newProc(const char *code, int file, script *lp); | ||
49 | const char *sendToChannel(gameGlobals *ourGlobals, const char *SID, const char *message); | ||
50 | |||
51 | /* join all worker threads and exit */ | ||
52 | void sched_join_workerthreads(void); | ||
53 | |||
54 | #endif | ||