In fact, why not just get the SDL source, extract the methods for the semaphores/mutexes for all fpc supported platforms and convert them to pascal? They can't be reliant on SDL threads implementation because I use them in my tthreads, SDL threads are buggy when you try to wait on terminate with jedi-sdl