Merge lp:~michihenning/unity-scopes-api/fix-threadpool-race into lp:unity-scopes-api
Proposed by
Michi Henning
Status: | Merged |
---|---|
Approved by: | Paweł Stołowski |
Approved revision: | 46 |
Merged at revision: | 50 |
Proposed branch: | lp:~michihenning/unity-scopes-api/fix-threadpool-race |
Merge into: | lp:unity-scopes-api |
Diff against target: |
372 lines (+198/-11) 7 files modified
include/scopes/internal/ThreadPool.h (+2/-3) include/scopes/internal/ThreadSafeQueue.h (+27/-3) src/internal/ThreadPool.cpp (+21/-4) test/gtest/unity/api/scopes/internal/CMakeLists.txt (+1/-0) test/gtest/unity/api/scopes/internal/ThreadPool/CMakeLists.txt (+4/-0) test/gtest/unity/api/scopes/internal/ThreadPool/ThreadPool_test.cpp (+106/-0) test/gtest/unity/api/scopes/internal/ThreadSafeQueue/ThreadSafeQueue_test.cpp (+37/-1) |
To merge this branch: | bzr merge lp:~michihenning/unity-scopes-api/fix-threadpool-race |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Paweł Stołowski (community) | Approve | ||
Review via email: mp+194283@code.launchpad.net |
Commit message
Fixed race condition that could cause a segfault if a thread pool was created and immediately destroyed again.
This gets rid of the occasional failures we've been seeing in the Runtime and RuntimeImpl tests.
Description of the change
Fixed race condition that could cause a segfault if a thread pool was created and immediately destroyed again.
This gets rid of the occasional failures we've been seeing in the Runtime and RuntimeImpl tests.
To post a comment you must log in.
Could someone review this please?