From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,bc2e729aa104b5d X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-08-28 09:20:21 PST Path: bga.com!news.sprintlink.net!redstone.interpath.net!ddsw1!news.kei.com!MathWorks.Com!news2.near.net!bloom-beacon.mit.edu!paperboy.osf.org!rsalz From: rsalz@osf.org (Rich Salz) Newsgroups: comp.unix.osf.osf1 Subject: Re: mutexes not unlocked when thread exits Date: 28 Aug 1994 16:06:45 GMT Organization: Open Software Foundation Message-ID: <33qcml$pt@paperboy.osf.org> References: <33f4ul$sd@hk.super.net> NNTP-Posting-Host: sulphur.osf.org In <33f4ul$sd@hk.super.net> lijewski@HK.Super.NET (Mr Mike James Lijewski) writes: >if a thread exits with a lock on >a mutex, that lock is not released; Correct. That's the way it's supposed to work. >Is there anyway out of this dilemma? You should have pthread_cleanup_push() and pthread_cleanup_pop(). /r$