delphi - Detecting a stale Mutex -


Is there any technology or device available to detect such type of deadlock during runtime?

Try this picture in a worker thread (one of the many, usually 4-6)

  waitforcaling object (MyMux); DoSTuffThatMightCauseAnException; Except release Mitux (MyMute); End;  

Or more generally, there is a design-pattern to avoid these types of bugs?

I have coded the code in small house after long running hacking

< P> Trying to use a better coding style / instead of trying / mute exchange (or like any other way to release that resource for that matter), i.e.:

  waitforescaling object (myMutex) try; Try DoSTuffThatMightCauseAnException; Finally releasemoots (mime); End; Except ... end;  

Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -