Addressed issue #290. Tried compiling for mac and it seemed that I couldn't include #include <pthread_np.h> in order to use pthread_getthreadid_np() so I had to add #define flags around it to check for BSD otherwise Linux wouldn't compile either. Might be doing something wrong in regards to the BSD/Mac to obtain the thread id. Also unsure if I should make the thread id's return an int or a pid_t.
Addressed issue #290. Tried compiling for mac and it seemed that I couldn't include
#include <pthread_np.h>
in order to usepthread_getthreadid_np()
so I had to add#define
flags around it to check for BSD otherwise Linux wouldn't compile either. Might be doing something wrong in regards to the BSD/Mac to obtain the thread id. Also unsure if I should make the thread id's return anint
or apid_t
.