mirror of
https://github.com/drasko/codezero.git
synced 2026-01-12 10:53:16 +01:00
A new or forked thread will have its tgid same as its unique thread id. A cloned thread (i.e. in the same space) will get its parent's tgid if the parent tgid is supplied as the suggested tgid in the ids field. Otherwise the thread will have its tgid same as its unique thread id. Previously we also allocated a tgid from a separate pool, but this doesn't make sense. It is cleaner to have the unique thread id get used also as the tgid.