|
(Note that these are not member functions.)
|
◆ gk_SEM_granted_kill()
Removes the ECBs from a the granted list of a semaphore resource.
gk_SEM_granted_kill
- Parameters
-
[in] | pevent1 | Task ECB associated to the semaphore resource |
- Returns
- G_TRUE when successful, G_FALSE otherwise
The ECBs has to be type G_ECBType_SEM_GRANTED or G_ECBType_TIMEOUT_SEM_GRANTED. This function is called from gk_TCB_List_Unlink
Definition at line 573 of file sem.c.
◆ gk_SEM_waiting_kill()
Removes the ECBs from a the waiting list of a semaphore resource.
gk_SEM_waiting_kill
- Parameters
-
[in] | pevent1 | Task ECB associated to the semaphore resource |
- Returns
- G_TRUE when successful, G_FALSE otherwise
The ECBs has to be type G_ECBType_SEM_WAITING or G_ECBType_TIMEOUT_SEM_WAITING This function is called from gk_TCB_List_Unlink
Definition at line 590 of file sem.c.
◆ gk_TASK_RESOURCE_CREATE()
Creates the structure to sopport a resource from a task.
gk_TASK_RESOURCE_CREATE
- Parameters
-
[in] | presource | Pointer to the RCB of the semaphore |
[in] | ptcb | Pointer to the TCB of the task |
[in] | waiting_priority | Default waiting priority |
[in] | RCBGrantedPriority | Default granted priority |
[in] | RCBWaitingTimeout | Default waiting timeout |
[in] | RCBGrantedTimeout | Default granted timeout |
- Returns
- Pointer to the ECB of the event of the resource
- Todo:
- Eliminate the code replacing where it is used
Definition at line 437 of file sem.c.
◆ gk_TASK_RESOURCE_DESTROY()
Destroy the events associated to a task and semaphore and returns them to the free lists.
gk_TASK_RESOURCE_DESTROY
- Parameters
-
[in] | presource | Pointer to the RCB of the resource |
[in] | pevent | Pointer to the ECB of the resource |
- Returns
- G_TRUE when successful, G_FALSE otherwise
- Todo:
- Eliminate replacing the code where it is used
Definition at line 486 of file sem.c.
◆ gk_TASK_RESOURCE_GRANT()
Sets the granted and timed events when a semaphore is granted to a TCB.
gk_TASK_RESOURCE_GRANT
- Parameters
-
[in] | presource | Pointer to the RCB of the semaphore |
[in] | pevent | Pointer to the ECB of the event |
- Returns
- G_TRUE when successful, G_FALSE otherwise
- Todo:
- Eliminate the function replacing the code
Definition at line 328 of file sem.c.
◆ gk_TASK_RESOURCE_UNGRANT()
Unlinks the granted and timed events of a granted task.
gk_TASK_RESOURCE_UNGRANT
- Parameters
-
[in] | presource | Pointer to the RCB of the semaphore |
[in] | pevent | Pointer to the ECB of the event |
- Returns
- G_TRUE when successful, G_FALSE otherwise
- Todo:
- Eliminate replacing the code
Definition at line 371 of file sem.c.
◆ gk_TASK_RESOURCE_UNWAIT()
Unlinks the ECB waiting and timed set for waiting a semaphore.
gk_TASK_RESOURCE_UNWAIT
- Parameters
-
[in] | presource | Pointer to the RCB of the semaphore |
[in] | pevent | Pointer to de ECB of the event |
- Returns
- G_TRUE when successful, G_FALSE otherwise
- Todo:
- Eliminate the code replacing it where it is called from
Definition at line 304 of file sem.c.
◆ gk_TASK_RESOURCE_WAIT()
Sets the waiting and timed event for waiting the semaphore.
gk_TASK_RESOURCE_WAIT
- Parameters
-
[in] | presource | Pointer to the RCB of the semaphore |
[in] | pevent | Pointer to de ECB of the event |
- Returns
- G_TRUE when successful, G_FALSE otherwise
- Todo:
- Eliminate this function replacing the code where it is called from
Definition at line 262 of file sem.c.
◆ gk_timeout_ECB_SEM_post()
Time routine for event G_ECBType_TIMEOUT_SEM_GRANTED. It is called from the time interrupt ISR.
gk_timeout_ECB_SEM_post
- Parameters
-
[in] | peventime | Pointer to the timed event |
- Returns
- G_TRUE when successful, G_FALSE otherwise
- Todo:
- Eliminate the TASK_RESOURCE routines
Definition at line 533 of file sem.c.
◆ gk_timeout_ECB_SEM_wait()
Time routine for event G_ECBType_TIMEOUT_SEM_WAITING. It is called from the time interrupt ISR.
gk_timeout_ECB_SEM_wait
- Parameters
-
[in] | peventime | Pointer to the timed event |
- Returns
- G_TRUE when successful, G_FALSE otherwise
- Todo:
- Replace gk_TASK_RESOURCE_UNWAIT
Definition at line 512 of file sem.c.
◆ gu_sem_destroy()
Links the RCB of a semaphore to the free list if there is no event granted or waiting.
gu_sem_destroy
- Parameters
-
[in] | presource | Pointer to the RCB of the semaphore |
- Returns
- G_TRUE when successful, G_FALSE otherwise
- Todo:
- Analyse to remove all list and trigger signal to tasks
Definition at line 86 of file sem.c.
◆ gu_sem_getvalue()
Return the current value of the semaphore.
gu_sem_getvalue
- Parameters
-
[in] | presource | Pointer to the RCB of the semaphore |
- Returns
- Current value of the semaphore
- Todo:
- Check if this function is necessary
Definition at line 247 of file sem.c.
◆ gu_sem_post()
Unlocks the semaphore (release the semaphore). Set ready the task waiting for semaphore.
gu_sem_post
- Parameters
-
[in] | presource | Pointer to the RCB of the semaphore |
- Returns
- G_TRUE when successful, G_FALSE otherwise
- Todo:
- Check if semaphore is granted to the task doing the post
Definition at line 211 of file sem.c.
◆ OPTIMEZE_CODE()
Definition at line 33 of file sem.c.
The documentation for this class was generated from the following files: