]> code.delx.au - pulseaudio/commit
core: add assert macros for verifying calling context
authorLennart Poettering <lennart@poettering.net>
Thu, 13 Aug 2009 00:14:19 +0000 (02:14 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 13 Aug 2009 00:14:19 +0000 (02:14 +0200)
commit9a95fe49c848d2711dcdcf4c407e626e41e4657f
treee2a535e8713aa93a0fbab8486ddf45c4214395db
parent17d57415f5abad5b7c30301227054b4c899bc705
core: add assert macros for verifying calling context

This adds pa_assert_io_context() and pa_assert_ctl_context() in addition
to a few related macros. When called they will fail when the current execution
context is not IO resp. not control context. (aka 'thread' context vs.
'main' context)
src/pulsecore/sink-input.c
src/pulsecore/sink-input.h
src/pulsecore/sink.c
src/pulsecore/sink.h
src/pulsecore/source-output.c
src/pulsecore/source-output.h
src/pulsecore/source.c
src/pulsecore/source.h
src/pulsecore/thread-mq.h