Revision b38f008e libavutil/internal.h

View differences:

libavutil/internal.h
210 210
    type ff_##name args
211 211
#endif
212 212

  
213
/**
214
 * Returns NULL if a threading library has not been enabled.
215
 * Used to disable threading functions in AVCodec definitions
216
 * when not needed.
217
 */
218
#if HAVE_THREADS
219
#   define ONLY_IF_THREADS_ENABLED(x) x
220
#else
221
#   define ONLY_IF_THREADS_ENABLED(x) NULL
222
#endif
223

  
213 224
#endif /* AVUTIL_INTERNAL_H */

Also available in: Unified diff