All of lore.kernel.org
 help / color / mirror / Atom feed
* Q: is the ALSA-lib API thread-safe
@ 2004-08-05  7:57 Daniel Schnell
  2004-08-05 10:06 ` Clemens Ladisch
  0 siblings, 1 reply; 4+ messages in thread
From: Daniel Schnell @ 2004-08-05  7:57 UTC (permalink / raw)
  To: alsa-devel

[-- Attachment #1: Type: text/plain, Size: 542 bytes --]

Hi,

is the ALSA-Lib-API thread-safe concerning the following scenario:


in thread 1 the audio-processing takes place via snd_pcm_avail_update(), 
snd_pcm_begin(), snd_pcm_commit(). In thread 2 I call the functions: 
snd_pcm_hwsync(), snd_pcm_avail_update() to get the actual delay via
bufferframes - snd_pcm_avail_update(). Should I lock these calls or
should I use instead snd_pcm_avail() in thread 2 ?
Is there any difference concerning thread-safety between the hw: layer or the plug: layer ?

Confused,

Ciao,

Daniel.

[-- Attachment #2: Type: text/html, Size: 1369 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-08-05 12:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-05  7:57 Q: is the ALSA-lib API thread-safe Daniel Schnell
2004-08-05 10:06 ` Clemens Ladisch
2004-08-05 12:31   ` Paul Davis
2004-08-05 12:51     ` Jaroslav Kysela

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.