summaryrefslogtreecommitdiff
path: root/indra/llmessage/lltransfertargetfile.h
diff options
context:
space:
mode:
authorNicky Dasmijn <nicky.dasmijn@phoenixviewer.com>2020-05-19 21:27:16 +0200
committerNicky Dasmijn <nicky.dasmijn@phoenixviewer.com>2020-05-19 21:27:16 +0200
commit13b4bd58324e265db5b6d7392f0202c07af1e303 (patch)
tree888f524c491c1702092c35915f3882bcbce2f4de /indra/llmessage/lltransfertargetfile.h
parent003ba682a1b7555a41f4c095b927d19c96a77256 (diff)
Make sure coproc gets destroyed after each iteration.
Making coproc scoped to the for loop will make sure the destructor gets called every loop iteration. Keeping it's scope outside the for loop means the pointer keeps valid till the next assigment that happens inside pop_wait_for when it gets assigned a new value. Triggering the dtor inside pop_wait_for can lead to deadlock when inside the dtor a coroutine tries to call enqueueCoprocedure (this happens). enqueueCoprocedure then will try to grab the lock for try_push but this lock is still held by pop_wait_for.
Diffstat (limited to 'indra/llmessage/lltransfertargetfile.h')
0 files changed, 0 insertions, 0 deletions