This repository has been archived on 2023-10-09. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
blender-archive/source/blender/blenlib
Bastien Montagne 0fe7446a30 BLI_task: fix case were some pool could work in more threads than allowed.
We were checking for number of tasks from given pool already active, and
then atomically increasing it if allowed - this is not correct, number
could be increased by another thread between check and atomic op!

Atomic primitives are nice, but you must be very careful with *how* you
use them... Now we atomically increase counter, check result, and if we
end up over max value, abort and decrease counter again.

Spotted by Sergey, thanks!
2016-10-08 14:51:33 +02:00
..
2015-10-10 17:35:30 +02:00
2016-02-13 18:59:56 +11:00
2015-12-24 01:52:54 +11:00
2015-02-14 08:00:41 +11:00
2014-08-07 14:42:47 +10:00
2015-08-25 08:50:53 +10:00
2015-10-17 16:04:54 +11:00
2016-06-12 00:41:02 +10:00
2015-10-17 00:03:29 +11:00
2015-06-19 20:19:37 +10:00
2015-12-21 13:02:38 +11:00