X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2Fos.h;h=9dd1649c0e456282889d6dae83132e04a57f78f0;hb=0285aa5ff8416027932daa001b84429be2ca559b;hp=8170a7026833b4252eac8cb1ad5b99c0647cb4de;hpb=e76ee4b0a5ef8e6954c800ce813063aa35e6eff4;p=sbcl.git diff --git a/src/runtime/os.h b/src/runtime/os.h index 8170a70..9dd1649 100644 --- a/src/runtime/os.h +++ b/src/runtime/os.h @@ -195,4 +195,15 @@ extern char *os_get_runtime_executable_path(int external_path); typedef os_vm_size_t word_t; #define WORD_FMTX OS_VM_SIZE_FMTX +#ifdef LISP_FEATURE_SB_THREAD +# ifndef CANNOT_USE_POSIX_SEM_T +# include + typedef sem_t os_sem_t; +# endif + void os_sem_init(os_sem_t *sem, unsigned int value); + void os_sem_wait(os_sem_t *sem, char *what); + void os_sem_post(os_sem_t *sem, char *what); + void os_sem_destroy(os_sem_t *sem); +#endif + #endif