Re: [swift-users] ThreadSanitizer: data race

2017-07-25 Thread Thierry Passeron via swift-users
Thanks Devin, that was the problem! After initialising with the recursive type attribute, it is now working. This list is my saviour. Thank you guys! I hope I can make it up to you someday. > Le 25 juil. 2017 à 22:37, Devin Coughlin a écrit : > > pthread_mutex_init(&mutex, nil) ___

Re: [swift-users] ThreadSanitizer: data race

2017-07-25 Thread Devin Coughlin via swift-users
Hi Thierry, Are you initializing the mutex with pthread_mutex_init()? For example: pthread_mutex_init(&mutex, nil) Just calling the default initializer for pthread_mutex_t is not sufficient — you won’t get any mutual exclusion. Thread Sanitizer should be complaining about this already (somet