This will ease the reporting of the current thread group ID when coming
from the thread itself, especially since it returns the visible ID,
starting at 1.
struct tgroup_info {
uint base; /* first thread in this group */
uint count; /* number of threads in this group */
+ uint tgid; /* group ID (starts at 1, 0=unspecified) */
/* pad to cache line (64B) */
char __pad[0]; /* unused except to check remaining room */
for (g = 0; g < global.nbtgroups; g++) {
if (!ha_tgroup_info[g].count)
ug++;
+ ha_tgroup_info[g].tgid = g + 1;
}
if (ug > ut) {