This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
yap-6.3/H/threads.h

27 lines
497 B
C
Raw Normal View History

2009-03-24 13:27:36 +00:00
#ifndef THREADS_H
#define THREADS_H 1
2009-03-26 00:39:57 +00:00
typedef struct thread_attr_struct {
UInt ssize;
UInt tsize;
UInt sysize;
int (*cancel)(int thread);
Term egoal;
} thread_attr;
2009-03-26 00:39:57 +00:00
#ifdef THREADS
2013-04-25 23:15:04 +01:00
Int Yap_thread_self(void);
int Yap_get_thread_ref_count(int);
void Yap_set_thread_ref_count(int,int);
CELL Yap_thread_create_engine(thread_attr *);
Int Yap_thread_attach_engine(int);
Int Yap_thread_detach_engine(int);
Int Yap_thread_destroy_engine(int);
2009-03-24 13:27:36 +00:00
#endif
#endif