OS_Smsg_Send_TO (smsg, smessage, timeout)
 
Same as OS_Smsg_Send with exit if timeout expires. If timeout expires before message is free, then new simple message will not be sent.
Only in task
smsg		 | 
		Simple message descriptor. Variable of OST_SMSG type | 
smessage		 | 
		Message body (OST_SMSG) | 
timeout		 | 
		Time of waiting in system ticks - calling OS_Timer periods | 
timeout		 | 
		If timeout expired then system service OS_IsTimeout will return true | 
OST_SMSG smsg; void Task (void) { for (;;) { /*...*/ OS_Smsg_Send_TO (smsg, 'B', 100); if (OS_IsTimeout()) { // Message is not sent! /*...*/ } /*...*/ } }
OS_SendSMsgTimeout