-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSDL_thread.fth
38 lines (33 loc) · 1.7 KB
/
SDL_thread.fth
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
\ This file has been generated using SWIG and fsi,
\ and is already platform dependent, search for the corresponding
\ fsi-file to compile it where no one has compiled it before ;)
\ Forth systems have their own own dynamic loader and don't need addional C-Code.
\ That's why this file will just print normal forth-code once compiled
\ and can be used directly with include or require.
\ As all comments are stripped during the compilation, please
\ insert the copyright notice of the original file here.
\ ----===< prefix >===-----
c-library sdl_thread
s" SDL2" add-lib
\c #include <SDL2/SDL_thread.h>
\ ----===< int constants >===-----
\ --------===< enums >===---------
#0 constant SDL_THREAD_PRIORITY_LOW
#1 constant SDL_THREAD_PRIORITY_NORMAL
#2 constant SDL_THREAD_PRIORITY_HIGH
#3 constant SDL_THREAD_PRIORITY_TIME_CRITICAL
\ ------===< functions >===-------
c-function SDL_CreateThread SDL_CreateThread a a a -- a ( fn name data -- )
c-function SDL_CreateThreadWithStackSize SDL_CreateThreadWithStackSize a a n a -- a ( fn name stacksize data -- )
c-function SDL_GetThreadName SDL_GetThreadName a -- a ( thread -- )
c-function SDL_ThreadID SDL_ThreadID -- n ( -- )
c-function SDL_GetThreadID SDL_GetThreadID a -- n ( thread -- )
c-function SDL_SetThreadPriority SDL_SetThreadPriority n -- n ( priority -- )
c-function SDL_WaitThread SDL_WaitThread a a -- void ( thread status -- )
c-function SDL_DetachThread SDL_DetachThread a -- void ( thread -- )
c-function SDL_TLSCreate SDL_TLSCreate -- n ( -- )
c-function SDL_TLSGet SDL_TLSGet n -- a ( id -- )
c-function SDL_TLSSet SDL_TLSSet n a a -- n ( id value destructor -- )
c-function SDL_TLSCleanup SDL_TLSCleanup -- void ( -- )
\ ----===< postfix >===-----
end-c-library