fyf_mutex.h
上传用户:sunhongbo
上传日期:2022-01-25
资源大小:3010k
文件大小:1k
源码类别:

数据库系统

开发平台:

C/C++

  1. #ifndef __FYF_MUTEX_H__
  2. #define __FYF_MUTEX_H__
  3. typedef struct 
  4. BU32 (*FYF_CPI_mutex_create)(void); 
  5. BS32 (*FYF_CPI_mutex_delete)(BU32 handle); 
  6. BS32 (*FYF_CPI_mutex_lock)(BU32 handle,BU32 timeout); 
  7. BS32 (*FYF_CPI_mutex_unlock)(BU32 handle);
  8. }FYF_MUTEX_PORTING_s;
  9. typedef FYF_MUTEX_PORTING_s* FYF_MUTEX_PORTING_sp;
  10. void FYF_API_mutex_register(FYF_MUTEX_PORTING_sp porting);
  11. BU32 FYF_API_mutex_create(void); 
  12. BS32 FYF_API_mutex_delete(BU32 handle); 
  13. BS32 FYF_API_mutex_lock(BU32 handle,BU32 timeout); 
  14. BS32 FYF_API_mutex_unlock(BU32 handle);
  15. #endif