semSmLib.h
上传用户:luoyougen
上传日期:2008-05-12
资源大小:23136k
文件大小:1k
源码类别:

VxWorks

开发平台:

C/C++

  1. /* semSmLib.h - shared semaphore library header file */
  2. /* Copyright 1984-1992 Wind River Systems, Inc. */
  3. /*
  4. modification history
  5. --------------------
  6. 01d,29sep92,pme  changed semSm[BC]Create to sem[BC]SmCreate.
  7. 01c,22sep92,rrr  added support for c++
  8. 01b,28jul92,pme  added #include "semLib.h".
  9. 01a,19jul92,pme  written.
  10. */
  11. #ifndef __INCsemSmLibh
  12. #define __INCsemSmLibh
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16. #include "vxWorks.h"
  17. #include "semLib.h"
  18. #include "smDllLib.h"
  19. typedef struct sm_semaphore * SM_SEM_ID;
  20. /* function declarations */
  21. #if defined(__STDC__) || defined(__cplusplus)
  22. extern    SEM_ID       semBSmCreate (int options, SEM_B_STATE initialState);
  23. extern    SEM_ID       semCSmCreate (int options, int initialCount);
  24. extern    void         semSmShowInit ();
  25. #else   /* __STDC__ */
  26. extern    SEM_ID       semBSmCreate ();
  27. extern    SEM_ID       semCSmCreate ();
  28. extern    void         semSmShowInit ();
  29. #endif /* __STDC__ */
  30. #ifdef __cplusplus
  31. }
  32. #endif
  33. #endif /* __INCsemSmLibh */