summaryrefslogtreecommitdiffstats
path: root/test/range-001.sh
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/range-001.sh
parenta80f8dcf2c6eb3b54658218bc081ee9694204dd5 (diff)
downloadcalcurse-0ea23c24bf06e153bb075804e195e1733fd67d3f.tar.gz
calcurse-0ea23c24bf06e153bb075804e195e1733fd67d3f.zip
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/range-001.sh')
0 files changed, 0 insertions, 0 deletions