> osgearth also knows how to use Windows and Mac OS X--specific syscalls > to get a thread ID. This is not portable and there is nothing directly > equivalent on FreeBSD, see: > http://lists.freebsd.org/pipermail/freebsd-hackers/2010-June/031992.html The FreeBSD equivalent is: int pthread_getthreadid_np(void);