Mercurial > libavcodec.hg
comparison w32thread.c @ 11406:fe7a77f77927 libavcodec
w32thread: Make avcodec_thread_execute2() static here as well
| author | andoma |
|---|---|
| date | Mon, 08 Mar 2010 12:58:22 +0000 |
| parents | d7ef6611a49e |
| children | 7bfe7456e372 |
comparison
equal
deleted
inserted
replaced
| 11405:8de15f200be8 | 11406:fe7a77f77927 |
|---|---|
| 114 WaitForSingleObject(c[0].done_sem, INFINITE); | 114 WaitForSingleObject(c[0].done_sem, INFINITE); |
| 115 | 115 |
| 116 return 0; | 116 return 0; |
| 117 } | 117 } |
| 118 | 118 |
| 119 int avcodec_thread_execute2(AVCodecContext *s, int (*func)(AVCodecContext *c2, void *arg2, int, int),void *arg, int *ret, int count){ | 119 static int avcodec_thread_execute2(AVCodecContext *s, int (*func)(AVCodecContext *c2, void *arg2, int, int),void *arg, int *ret, int count){ |
| 120 ThreadContext *c= s->thread_opaque; | 120 ThreadContext *c= s->thread_opaque; |
| 121 int i; | 121 int i; |
| 122 for(i=0; i<s->thread_count; i++) | 122 for(i=0; i<s->thread_count; i++) |
| 123 c[i].func2 = func; | 123 c[i].func2 = func; |
| 124 avcodec_thread_execute(s, NULL, arg, ret, count, 0); | 124 avcodec_thread_execute(s, NULL, arg, ret, count, 0); |
