Mercurial > flash_v2
comparison packages/kernel/current/src/common/kapi.cxx @ 38:e7ba79f6d3a8 ecos-sw-1999-09-23
Merge from eCos master repository on 1999-09-23-20:10:25-BST
| author | jlarmour |
|---|---|
| date | Thu, 23 Sep 1999 19:52:27 +0000 |
| parents | d3fbcdfa1b2f |
| children | 755351606154 |
comparison
equal
deleted
inserted
replaced
| 37:0b25345c9c69 | 38:e7ba79f6d3a8 |
|---|---|
| 1003 m=m; | 1003 m=m; |
| 1004 } | 1004 } |
| 1005 | 1005 |
| 1006 externC void cyg_mutex_destroy( cyg_mutex_t *mutex ) | 1006 externC void cyg_mutex_destroy( cyg_mutex_t *mutex ) |
| 1007 { | 1007 { |
| 1008 // no need to do anything here | 1008 ((Cyg_Mutex *)mutex)->~Cyg_Mutex(); |
| 1009 } | 1009 } |
| 1010 | 1010 |
| 1011 externC cyg_bool_t cyg_mutex_lock( cyg_mutex_t *mutex ) | 1011 externC cyg_bool_t cyg_mutex_lock( cyg_mutex_t *mutex ) |
| 1012 { | 1012 { |
| 1013 return ((Cyg_Mutex *)mutex)->lock(); | 1013 return ((Cyg_Mutex *)mutex)->lock(); |
| 1043 t=t; | 1043 t=t; |
| 1044 } | 1044 } |
| 1045 | 1045 |
| 1046 externC void cyg_cond_destroy( cyg_cond_t *cond ) | 1046 externC void cyg_cond_destroy( cyg_cond_t *cond ) |
| 1047 { | 1047 { |
| 1048 ((Cyg_Counting_Semaphore *)cond)->~Cyg_Counting_Semaphore(); | 1048 ((Cyg_Condition_Variable *)cond)->~Cyg_Condition_Variable(); |
| 1049 } | 1049 } |
| 1050 | 1050 |
| 1051 externC void cyg_cond_wait( cyg_cond_t *cond ) | 1051 externC void cyg_cond_wait( cyg_cond_t *cond ) |
| 1052 { | 1052 { |
| 1053 ((Cyg_Condition_Variable *)cond)->wait(); | 1053 ((Cyg_Condition_Variable *)cond)->wait(); |
