Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torch/threads-ffi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAdam Lerer <alerer@fb.com>2016-04-14 01:16:02 +0300
committerAdam Lerer <alerer@fb.com>2016-04-14 23:09:31 +0300
commita9d4eca0ebb412a886cdc736a6e92a16851211a9 (patch)
treec4dfe0cd562a34fcf73698e08b4699263b13e1c1 /test
parent9e31123db00c8c8c437a3cba744576456de38731 (diff)
propagate errors immediately to prevent deadlocks
Diffstat (limited to 'test')
-rw-r--r--test/test-threads-async.lua3
1 files changed, 0 insertions, 3 deletions
diff --git a/test/test-threads-async.lua b/test/test-threads-async.lua
index 68bcd35..63f4869 100644
--- a/test/test-threads-async.lua
+++ b/test/test-threads-async.lua
@@ -37,9 +37,6 @@ local function get()
-- is there still something to do?
if pool:hasjob() then
pool:dojob() -- yes? do it!
- if pool:haserror() then -- check for errors
- pool:synchronize() -- finish everything and throw error
- end
return result
end