From: Luke B. <ka...@gm...> - 2016-01-27 10:14:58
|
Hi, I've tentatively started porting SDL 2 to KOS - I have it successfully compiling, I've just started swapping out all the generic/dummy implementations of the subsystems with KOS specific ones. I've done the timer backend and now I'm working on the thread backend. I noticed that the existing pthreads backend in SDL 2 would probably work on KOS, but SDL looks for "semaphore.h" which apparently doesn't exist in KOS, but does exist in newlib. There also seems to be a very similar semaphore implementation in "kos/sem.h". Before I implement a wrapper around kos/sem.h to make the SDL 2 pthreads stuff compile, I just wondered if there was a reason why semaphore.h isn't available in KOS by default, and would it be better if I perhaps altered the semaphore.h from newlib (in a similar way to pthread.h) and sent a patch to KOS? Thanks, Luke. |