Wallacoloo / printipi

3d printing directly through the Raspberry Pi's GPIO pins
MIT License
141 stars 43 forks source link

Remove pthread Dependency #18

Closed Wallacoloo closed 9 years ago

Wallacoloo commented 9 years ago

Right now, scheduler.h includes <pthread> and uses it to increase the process priority. This should only be done if the platform actually supports pthread. So, this should be checked at compile-time.

Wallacoloo commented 9 years ago

Turns out that autodetecting the presence of pthread on a system is pretty nasty. But I made a makefile option (USE_PTHREAD) that can control the usage of pthread in the devel branch.