my current project requires recording some information for various events that happen during the execution of a thread. These events are saved in a global struct index by the th