Date: Sat, 17 Jan 1998 07:17:52 +0000 (GMT) From: Terry Lambert <tlambert@primenet.com> To: grog@lemis.com (Greg Lehey) Cc: tlambert@primenet.com, hackers@FreeBSD.ORG Subject: Re: Why no sys/setjmp.h? Message-ID: <199801170717.AAA26333@usr01.primenet.com> In-Reply-To: <19980116164618.38842@lemis.com> from "Greg Lehey" at Jan 16, 98 04:46:18 pm
next in thread | previous in thread | raw e-mail | index | archive | help
> >> Which are? That was my question. > > > > Using tsleep()/wakeup(), for one. Any set of operations can be reduced. > > OK. I have a situation where I discover an error in the middle of a > relatively complicated function. I can see two possibilities to solve > it: > > 1. Return -1 or some such, and test every function call within this > part of the code. A lot of code. > 2. longjmp () out of the code. > > Could you explain how to use tsleep()/wakeup() to perform this > function? Obtain intention mode locks before descending. If you have a possible conflict, then the intention mode lock wasn't granted, and this situtation never arose. 8-). Oh, yeah, I forgot, "transitive colsure" is a bad phrase. 8-(. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199801170717.AAA26333>