Browse Source

and for the interesting part: multiple poller threads

git.mgm/mediaproxy-ng/2.1
Richard Fuchs 14 years ago
parent
commit
0d6349f14c
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      daemon/main.c

+ 3
- 0
daemon/main.c View File

@ -441,6 +441,9 @@ int main(int argc, char **argv) {
thread_create_detach(sighandler, NULL); thread_create_detach(sighandler, NULL);
thread_create_detach(timer_loop, ctx.p); thread_create_detach(timer_loop, ctx.p);
thread_create_detach(poller_loop, ctx.p); thread_create_detach(poller_loop, ctx.p);
thread_create_detach(poller_loop, ctx.p);
thread_create_detach(poller_loop, ctx.p);
thread_create_detach(poller_loop, ctx.p);
while (!global_shutdown) { while (!global_shutdown) {
usleep(100000); usleep(100000);


Loading…
Cancel
Save