ylock.h
Upload User: sy_wanhua
Upload Date: 2013-07-25
Package Size: 3048k
Code Size: 0k
Category:

Streaming_Mpeg4

Development Platform:

C/C++

  1. /* -*- Mode: C; c-file-style: "bsd" -*- */
  2. #ifndef YLOCK_H
  3. #define YLOCK_H
  4. #include "yarrow.h"
  5. /* these functions should return:
  6.  *
  7.  *        YARROW_OK on success
  8.  *    and YARROW_LOCKING on failure
  9.  */
  10. #if defined( USE_LOCKS )
  11. #include "openssl/crypto.h"
  12. int LOCK( void ) { CRYPTO_w_lock(CRYPTO_LOCK_RAND); return (YARROW_OK); }
  13. int UNLOCK( void ) { CRYPTO_w_unlock(CRYPTO_LOCK_RAND); return (YARROW_OK); }
  14. #else
  15. #define LOCK() YARROW_OK
  16. #define UNLOCK() YARROW_OK
  17. #endif
  18. #endif /* YLOCK_H */