On 01.08.2017 23:27, Zebediah Figura wrote:
Accessing a global list from multiple threads requires synchronization (for example, using a CS to avoid conflicting access). Using apt->cs is not sufficient because it might be a different one for each thread. The same also applies to all other places where the list is used.
The thread handle is leaked here. Also, it would be more convincing to run the tests for both STA and MTA.