summaryrefslogtreecommitdiff
path: root/test%252525252525253fid%252525252525253d0715a4433cc2c602458cbcb2bf0b1de15d634...
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2012-11-23 10:41:20 +0100
committerLukas Fleischer <calcurse@cryptocrack.de>2012-11-23 11:12:08 +0100
commit0ea23c24bf06e153bb075804e195e1733fd67d3f (patch)
tree740ec1c36e1b78143350e6cb079faa187f99049d /test%252525252525253fid%252525252525253d0715a4433cc2c602458cbcb2bf0b1de15d63439b%2525252525253fid%2525252525253d0715a4433cc2c602458cbcb2bf0b1de15d63439b%25252525253fid%25252525253d0715a4433cc2c602458cbcb2bf0b1de15d63439b%252525253fid%252525253d4e28e8a9cc2ce6e81833d71270a74f0f55a540fc%2525253fid%2525253d4e28e8a9cc2ce6e81833d71270a74f0f55a540fc%25253fid%25253d4e28e8a9cc2ce6e81833d71270a74f0f55a540fc%253fid%253d4e28e8a9cc2ce6e81833d71270a74f0f55a540fc%3fid%3d7f16e1c1d30f56d796b1e7f2286c9ccfdd97061f?id=0ea23c24bf06e153bb075804e195e1733fd67d3f
parenta80f8dcf2c6eb3b54658218bc081ee9694204dd5 (diff)
Release screen mutex if thread dies
We did not setup a thread cleanup procedure which resulted in calcurse freezing if a thread tried to draw on the screen after another thread was canceled while locking the screen. Note that this kind of cleanup handlers should be added to other mutexes as well. This patch just removes the most common case of triggering a deadlock. Also note that we cannot move pthread_cleanup_push() and pthread_cleanup_pop() into the locking/unlocking functions since both pthread_cleanup_push() and pthread_cleanup_pop() may be implemented as macros that must be used in pairs within the same lexical scope. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'test%252525252525253fid%252525252525253d0715a4433cc2c602458cbcb2bf0b1de15d63439b%2525252525253fid%2525252525253d0715a4433cc2c602458cbcb2bf0b1de15d63439b%25252525253fid%25252525253d0715a4433cc2c602458cbcb2bf0b1de15d63439b%252525253fid%252525253d4e28e8a9cc2ce6e81833d71270a74f0f55a540fc%2525253fid%2525253d4e28e8a9cc2ce6e81833d71270a74f0f55a540fc%25253fid%25253d4e28e8a9cc2ce6e81833d71270a74f0f55a540fc%253fid%253d4e28e8a9cc2ce6e81833d71270a74f0f55a540fc%3fid%3d7f16e1c1d30f56d796b1e7f2286c9ccfdd97061f?id=0ea23c24bf06e153bb075804e195e1733fd67d3f')
0 files changed, 0 insertions, 0 deletions