Commit a0a83d75 authored by claes's avatar claes

Inherit scheduling parameters from creator in thread_Create

parent bc625f56
/*
* Proview $Id: rt_thread.c,v 1.5 2005-09-01 14:57:56 claes Exp $
* Proview $Id: rt_thread.c,v 1.6 2006-03-29 12:18:16 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
......@@ -241,7 +241,12 @@ thread_Create (
#elif defined OS_VMS || defined OS_LINUX || defined OS_LYNX
return errno_Status(pthread_create(tp, NULL, routine, arg));
pthread_attr_t attr;
pthread_attr_init(&attr);
pthread_attr_setinheritsched(&attr, PTHREAD_INHERIT_SCHED);
return errno_Status(pthread_create(tp, &attr, routine, arg));
#else
# error Not defined for this platform !
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment