public inbox for
 help / color / mirror / Atom feed
* pb with semaphores in 2004-11-03 snapshot
@ 2004-11-18  1:59 nicolas
  0 siblings, 0 replies; only message in thread
From: nicolas @ 2004-11-18  1:59 UTC (permalink / raw)
  To: pthreads-win32

Hi list

I have a problem with this snapshot, where as the previous ones were working

Threads seem to lock up randomly waiting for something to happen, but never

I tried to recompile the library using VS C++ .net in debug mode (no
optimization at all), but the same problem occurs (except I can give details on
where it's hanging).

Every time I break in my frozen app, I am in a situation similar to this:

* thread A, stuck in a pthread_cond_timedwait

* thread B,C, etc stuck on pthread_mutex_lock for the mutex used in the
condition in A.

The mutex is indeed still taken by A, because A is stuck on this line:
in ptw32_cond_timedwait
/* Thread can be cancelled in sem_wait() but this is OK */
  if (sem_wait (&(cv->semBlockLock)) != 0)

and then it's stuck on
              result = pthreadCancelableWait (s->sem);
in sem_wait

I can not find who kept the semaphore (the owner field of the semaphore is 0).

Does anyone experienced such problem?



video meliora proboque deteriora sequor

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-11-18  1:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-18  1:59 pb with semaphores in 2004-11-03 snapshot nicolas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).