[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On Fri, 17 Aug 2012 10:45:18 -0600
Thomas Fjellstrom <tfjellstrom@xxxxxxxxxx> wrote:
>
> While I'm sure that could work it feels kinda icky. What about using
> gettid? (or if not available, `syscall(__NR_gettid)`).
>
Maybe best to use getpid() or gettid() under Linux, and use
pthread_self() elsewhere for now (and then adjust to something better
for each platform as is needed).
On the other hand SDL supports a lot more platforms than Allegro, so if
pthread_self() is good enough for them... :)