justincormack / ljsyscall

LuaJIT Unix syscall FFI
http://www.myriabit.com/ljsyscall/
Other
440 stars 54 forks source link

expose the gettid syscall on Linux #215

Closed qsn closed 7 years ago

qsn commented 7 years ago

When using @jsitnicki 's rushit tool, we'd like to have a unique identifier for threads. The gettid() syscall would provide that.

justincormack commented 7 years ago

Sure, I don't know why this wasn't there before... Possibly because using threads needs some care...