|
|
|
|
|
by staticassertion
3487 days ago
|
|
> you need to ensure that there is an explicit memory barrier yourself when you transfer the object. To be clear, you need to write the code yourself, but the compiler won't let you transfer ownership between threads without doing so. There is no way to compile your code without proving to the compiler that you're data race free. |
|