Mercurial > libavcodec.hg
comparison os2thread.c @ 6496:8fbbe12e0c39 libavcodec
Add attribute_align_arg to os2thread.c.
Patch by Dave Yeo.
author | ramiro |
---|---|
date | Sat, 15 Mar 2008 12:28:35 +0000 |
parents | 2b72f9bc4f06 |
children | a9734fe0811e |
comparison
equal
deleted
inserted
replaced
6495:791b0ef6e72e | 6496:8fbbe12e0c39 |
---|---|
37 void *arg; | 37 void *arg; |
38 int ret; | 38 int ret; |
39 }ThreadContext; | 39 }ThreadContext; |
40 | 40 |
41 | 41 |
42 void thread_func(void *v){ | 42 void attribute_align_arg thread_func(void *v){ |
43 ThreadContext *c= v; | 43 ThreadContext *c= v; |
44 | 44 |
45 for(;;){ | 45 for(;;){ |
46 //printf("thread_func %X enter wait\n", (int)v); fflush(stdout); | 46 //printf("thread_func %X enter wait\n", (int)v); fflush(stdout); |
47 DosWaitEventSem(c->work_sem, SEM_INDEFINITE_WAIT); | 47 DosWaitEventSem(c->work_sem, SEM_INDEFINITE_WAIT); |