lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame^] | 1 | #include "base_api.h"
|
| 2 |
|
| 3 | #if MS_OS_CRITICAL_SECTION_SUPPORT > 0
|
| 4 |
|
| 5 | int os_enter_critical_section_sem(NU_SEMAPHORE *sem);
|
| 6 |
|
| 7 | int os_leave_critical_section_sem(NU_SEMAPHORE *sem);
|
| 8 |
|
| 9 | int os_sem_is_custom_style(OPTION sema_style);
|
| 10 |
|
| 11 | int os_sem_is_custom(NU_SEMAPHORE *sem_p);
|
| 12 |
|
| 13 | VOID os_sem_set_custom(NU_SEMAPHORE *sem, OPTION sema_style);
|
| 14 |
|
| 15 | UINT32 os_sem_create_custom( |
| 16 | NU_SEMAPHORE *sem_p, |
| 17 | const char *name, |
| 18 | int i, |
| 19 | OPTION sema_style);
|
| 20 |
|
| 21 | STATUS os_sem_kill_custom(NU_SEMAPHORE *sem_p);
|
| 22 |
|
| 23 |
|
| 24 | // P98C-YXS VOID os_sem_preset_crit_sect(NU_SEMAPHORE *sem, NU_TASK task_ptr);
|
| 25 | #endif
|