]> git.alsa-project.org Git - alsa-lib.git/commit
Fix semaphore deadlocks
authorTakashi Iwai <tiwai@suse.de>
Mon, 23 May 2005 08:56:48 +0000 (08:56 +0000)
committerTakashi Iwai <tiwai@suse.de>
Mon, 23 May 2005 08:56:48 +0000 (08:56 +0000)
commita3ae02d88411f1f7b3da9ef66065cb94c1bf1189
treee23c2d8e45cb191b26cd46c8e03985ec11eb7286
parentddd9c29a0dd1db1860d951931768ce3a333b5993
Fix semaphore deadlocks

- Fixed unbalanced semaphores (which may cause deadlock)
- Do semaphore-up before blocking calls for communication with the server
- Don't discard semaphores on the client side
- Open slave PCMs always in non-blocking mode to avoid blocking by semaphore
  with the secondary open
src/pcm/pcm_direct.c
src/pcm/pcm_dmix.c
src/pcm/pcm_dshare.c
src/pcm/pcm_dsnoop.c