Lines Matching refs:context

42    M4OSA_UInt32   coreID;     /* semaphore context identifiant */
53 * @note This function creates and allocates a unique context. It's the
54 * OSAL real time responsibility for managing its context. It must
55 * be freed by the M4OSA_semaphoreClose function. The context
58 * @param context:(OUT) Context of the created semaphore
61 * @return M4ERR_PARAMETER: provided context is NULL
63 * @return M4ERR_CONTEXT_FAILED: the context creation failed
66 M4OSA_ERR M4OSA_semaphoreOpen(M4OSA_Context* context,
72 "%d", context, initial_count);
74 M4OSA_DEBUG_IF2(context == M4OSA_NULL,
77 *context = M4OSA_NULL;
81 (M4OSA_Char*)"M4OSA_semaphoreOpen: semaphore context");
101 *context = (M4OSA_Context)semaphoreContext;
112 * semaphore is identified by its context This call is not blocking
120 * @param context:(IN/OUT) Context of the semaphore
126 * @return M4ERR_BAD_CONTEXT: provided context is not a valid one
129 M4OSA_ERR M4OSA_semaphoreWait(M4OSA_Context context, M4OSA_Int32 timeout)
131 M4OSA_SemaphoreContext* semaphoreContext = (M4OSA_SemaphoreContext*)context;
137 context, timeout);
139 M4OSA_DEBUG_IF2(context == M4OSA_NULL,
198 * identified by its context
204 * @param context:(IN/OUT) Context of the semaphore
207 * @return M4ERR_BAD_CONTEXT: provided context is not a valid one
210 M4OSA_ERR M4OSA_semaphorePost(M4OSA_Context context)
212 M4OSA_SemaphoreContext* semaphoreContext = (M4OSA_SemaphoreContext*)context;
214 M4OSA_TRACE1_1("M4OSA_semaphorePost\t\tM4OSA_Context 0x%x", context);
216 M4OSA_DEBUG_IF2(context == M4OSA_NULL,
233 * @brief This method deletes a semaphore (identify by its context).
234 * After this call the semaphore and its context is no more
239 * @param context:(IN/OUT) Context of the semaphore
242 * @return M4ERR_BAD_CONTEXT: provided context is not a valid one.
245 M4OSA_ERR M4OSA_semaphoreClose(M4OSA_Context context)
247 M4OSA_SemaphoreContext* semaphoreContext = (M4OSA_SemaphoreContext*)context;
249 M4OSA_TRACE1_1("M4OSA_semaphoreClose\t\tM4OSA_Context 0x%x", context);
251 M4OSA_DEBUG_IF2(context == M4OSA_NULL,