Lines Matching full:for
18 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
19 * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
43 /* For a totally minimal and standalone system, we provide null
77 /** Return code for timeouts from sys_arch_mbox_fetch and sys_arch_sem_wait */
81 * For now we use the same magic value, but we allow this to change in future.
88 /** Function prototype for thread functions */
91 /* Function prototypes for functions to be implemented by platform ports
99 /* for old ports that don't have mutexes: define them to binary semaphores */
124 /** Check if a mutex is valid/allocated: return 1 for valid, 0 for invalid */
143 /** Wait for a semaphore for the specified timeout
144 * @param sem the semaphore to wait for
146 * @return time (in milliseconds) waited for the semaphore
152 /** Wait for a semaphore - forever/no timeout */
155 /** Check if a sempahore is valid/allocated: return 1 for valid, 0 for invalid */
184 /** Wait for a new message to arrive in the mbox
187 * @param timeout maximum time (in milliseconds) to wait for a message
188 * @return time (in milliseconds) waited for a message, may be 0 if not waited
192 /* Allow port to override with a macro, e.g. special timout for sys_arch_mbox_fetch() */
194 /** Wait for a new message to arrive in the mbox
197 * @param timeout maximum time (in milliseconds) to wait for a message
202 /** For now, we map straight to sys_arch implementation. */
209 /** Check if an mbox is valid/allocated: return 1 for valid, 0 for invalid */
219 * @param name human-readable name for the thread (used for debugging purposes)
222 * @param stacksize stack size in bytes for the new thread (may be ignored by ports)
243 mechanism than using semaphores. Otherwise semaphores can be used for
248 * for certain critical regions during buffer allocation, deallocation and memory
261 * disabling interrupts for an embedded system or by using a semaphore or
293 * Use these for accessing variable that are used from more than one thread.