mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
test: Add pcm-multi-thread program
A simple multi-thread stress test for PCM is added to test subdirectory. It can perform various PCM update function in the worker threads while reading/writing the data in the main thread. It can help catching the unexpected error or blockage. For example, running the capture test with a softvol plugin will lead to the assert due to the races. Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
97fce66077
commit
147093ac5b
2 changed files with 265 additions and 1 deletions
|
|
@ -3,7 +3,7 @@ SUBDIRS=. lsb
|
|||
check_PROGRAMS=control pcm pcm_min latency seq \
|
||||
playmidi1 timer rawmidi midiloop \
|
||||
oldapi queue_timer namehint client_event_filter \
|
||||
chmap audio_time user-ctl-element-set
|
||||
chmap audio_time user-ctl-element-set pcm-multi-thread
|
||||
|
||||
control_LDADD=../src/libasound.la
|
||||
pcm_LDADD=../src/libasound.la
|
||||
|
|
@ -23,6 +23,7 @@ client_event_filter_LDADD=../src/libasound.la
|
|||
code_CFLAGS=-Wall -pipe -g -O2
|
||||
chmap_LDADD=../src/libasound.la
|
||||
audio_time_LDADD=../src/libasound.la
|
||||
pcm_multi_thread_LDADD=../src/libasound.la
|
||||
|
||||
user_ctl_element_set_LDADD=../src/libasound.la
|
||||
user_ctl_element_set_CFLAGS=-Wall -g
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue