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

Re: [swift-users] swift 4.0 complains/warns about swapping array elements

2017-05-19 Thread Devin Coughlin via swift-users
Hi Ed, > On May 19, 2017, at 10:10 AM, Edward Connell via swift-users > wrote: > > I just switched to the 5/17 swift 4.0 tool chain on Linux, and I am getting > the following complaint when using swap on array elements. Is this warning > legitimate because of a copy on write issue? If so, is