Subversion Repositories HelenOS

Rev

Rev 2790 | Rev 3063 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2790 Rev 2907
Line 263... Line 263...
263
 
263
 
264
/** Create new thread
264
/** Create new thread
265
 *
265
 *
266
 * Create a new thread.
266
 * Create a new thread.
267
 *
267
 *
268
 * @param func      Thread's implementing function.
268
 * @param func      Thread's implementing function.
269
 * @param arg       Thread's implementing function argument.
269
 * @param arg       Thread's implementing function argument.
270
 * @param task      Task to which the thread belongs.
270
 * @param task      Task to which the thread belongs. The caller must
-
 
271
 *          guarantee that the task won't cease to exist during the
-
 
272
 *          call. The task's lock may not be held.
271
 * @param flags     Thread flags.
273
 * @param flags     Thread flags.
272
 * @param name      Symbolic name.
274
 * @param name      Symbolic name.
273
 * @param uncounted Thread's accounting doesn't affect accumulated task
275
 * @param uncounted Thread's accounting doesn't affect accumulated task
274
 *          accounting.
276
 *          accounting.
275
 *
277
 *
276
 * @return New thread's structure on success, NULL on failure.
278
 * @return      New thread's structure on success, NULL on failure.
277
 *
279
 *
278
 */
280
 */
279
thread_t *thread_create(void (* func)(void *), void *arg, task_t *task,
281
thread_t *thread_create(void (* func)(void *), void *arg, task_t *task,
280
    int flags, char *name, bool uncounted)
282
    int flags, char *name, bool uncounted)
281
{
283
{