add support for threads to C-interface (first cut, not done yet).

git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1097 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
vsc 2004-07-22 21:50:53 +00:00
parent 21a3377248
commit d16b7e4ec9

12
H/threads.h Normal file
View File

@ -0,0 +1,12 @@
typedef struct{
UInt ssize;
UInt tsize;
int (*cancel)(int thread);
} thread_attr;
Int STD_PROTO(Yap_thread_self,(void));
Int STD_PROTO(Yap_thread_create_engine,(thread_attr *));
Int STD_PROTO(Yap_thread_attach_engine,(int));
Int STD_PROTO(Yap_thread_detach_engine,(int));
Int STD_PROTO(Yap_thread_destroy_engine,(int));