Mercurial > libavcodec.hg
comparison pthread.c @ 4283:d6f83e2f8804 libavcodec
rename always_inline to av_always_inline and move to common.h
author | mru |
---|---|
date | Fri, 08 Dec 2006 00:35:08 +0000 |
parents | c8c591fe26f8 |
children | f99e40a7155b |
comparison
equal
deleted
inserted
replaced
4282:9d64f6eacc7b | 4283:d6f83e2f8804 |
---|---|
74 pthread_mutex_lock(&c->current_job_lock); | 74 pthread_mutex_lock(&c->current_job_lock); |
75 our_job = c->current_job++; | 75 our_job = c->current_job++; |
76 } | 76 } |
77 } | 77 } |
78 | 78 |
79 static always_inline void avcodec_thread_park_workers(ThreadContext *c, int thread_count) | 79 static av_always_inline void avcodec_thread_park_workers(ThreadContext *c, int thread_count) |
80 { | 80 { |
81 pthread_cond_wait(&c->last_job_cond, &c->current_job_lock); | 81 pthread_cond_wait(&c->last_job_cond, &c->current_job_lock); |
82 pthread_mutex_unlock(&c->current_job_lock); | 82 pthread_mutex_unlock(&c->current_job_lock); |
83 } | 83 } |
84 | 84 |