From ef83a195251271f59feda68dba20b53d1634402f Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 12 Sep 2007 22:57:29 +0000 Subject: extend rtpoll API to allow registration of arbitray functions to be executed in the event loop. Add priority system for specifying the order of these functions. git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1816 fefdeb5f-60dc-0310-8127-8f9354f1896f --- src/modules/module-oss.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/modules/module-oss.c') diff --git a/src/modules/module-oss.c b/src/modules/module-oss.c index ffecd394..1fd8d2e5 100644 --- a/src/modules/module-oss.c +++ b/src/modules/module-oss.c @@ -577,7 +577,7 @@ static int unsuspend(struct userdata *u) { pa_assert(!u->rtpoll_item); - u->rtpoll_item = pa_rtpoll_item_new(u->rtpoll, 1); + u->rtpoll_item = pa_rtpoll_item_new(u->rtpoll, PA_RTPOLL_NEVER, 1); pollfd = pa_rtpoll_item_get_pollfd(u->rtpoll_item, NULL); pollfd->fd = u->fd; pollfd->events = 0; @@ -1167,8 +1167,8 @@ int pa__init(pa_module*m) { u->use_mmap = use_mmap; pa_thread_mq_init(&u->thread_mq, m->core->mainloop); u->rtpoll = pa_rtpoll_new(); - pa_rtpoll_item_new_asyncmsgq(u->rtpoll, u->thread_mq.inq); - u->rtpoll_item = pa_rtpoll_item_new(u->rtpoll, 1); + pa_rtpoll_item_new_asyncmsgq(u->rtpoll, PA_RTPOLL_EARLY, u->thread_mq.inq); + u->rtpoll_item = pa_rtpoll_item_new(u->rtpoll, PA_RTPOLL_NEVER, 1); pollfd = pa_rtpoll_item_get_pollfd(u->rtpoll_item, NULL); pollfd->fd = fd; pollfd->events = 0; -- cgit