Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
BroadcastCommunity.qnx.com will be offline from May 31 6:00pm until June 2 12:00AM for upcoming system upgrades. For more information please go to https://community.qnx.com/sf/discussion/do/listPosts/projects.bazaar/discussion.bazaar.topc28418
Forum Topic - setting the prio of a thread at creation time: Page 1 of 2 (2 Items)
   
setting the prio of a thread at creation time  
Hello,

that's my code:
	
/* create threads*/
	pthread_attr_init(&temptAttribute);
	param.sched_priority = 30;
	pthread_attr_setschedparam( &temptAttribute, ¶m );
	pthread_attr_setinheritsched( &temptAttribute, THREAD_EXPLICIT_SCHED );
	pthread_attr_setstacksize( &temptAttribute, 1024 );
	
	if ((ret = pthread_create(tHndl, &temptAttribute, ptFunc, pParams)) != 0) {
		printf(" * UserCreateThread: Thread creation failed %d\n", ret);
		return 0;
	}

It doesn't work as specified  .... what's wrong with it ??

Regards

--Armin Steinhoff