Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - When does _NTO_TCTL_RUNMASK take effect?: (5 Items)
   
When does _NTO_TCTL_RUNMASK take effect?  
Does the ThreadCtl _NTO_TCTL_RUNMASK take effect immediately?  Say my thread is running on CPU 1 and I call ThreadCtl to
 set it to run on CPU 0 only.  Am I guaranteed that my thread is running on CPU 0 when ThreadCtl returns?
RE: When does _NTO_TCTL_RUNMASK take effect?  
Yes, it's immediate.
________________________________________
From: Robert Murrell [community-noreply@qnx.com]
Sent: November 25, 2015 8:57 AM
To: ostech-core_os
Subject: When does _NTO_TCTL_RUNMASK take effect?

Does the ThreadCtl _NTO_TCTL_RUNMASK take effect immediately?  Say my thread is running on CPU 1 and I call ThreadCtl to
 set it to run on CPU 0 only.  Am I guaranteed that my thread is running on CPU 0 when ThreadCtl returns?




_______________________________________________

OSTech
http://community.qnx.com/sf/go/post115112
To cancel your subscription to this discussion, please e-mail ostech-core_os-unsubscribe@community.qnx.com
Re: RE: When does _NTO_TCTL_RUNMASK take effect?  
I'll mention this in the docs. Is the same true (as I expect) for _NTO_TCTL_RUNMASK_GET_AND_SET and  
_NTO_TCTL_RUNMASK_GET_AND_SET_INHERIT?
Re: RE: When does _NTO_TCTL_RUNMASK take effect?  
> I'll mention this in the docs. Is the same true (as I expect) for 
> _NTO_TCTL_RUNMASK_GET_AND_SET and  _NTO_TCTL_RUNMASK_GET_AND_SET_INHERIT?

Yup.


Re: RE: When does _NTO_TCTL_RUNMASK take effect?  
Thanks for the quick reply.