Skip to content

Commit

Permalink
Ticket #308: Add vos Sim function to API
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.code.sf.net/p/tcnopen/trdp/trunk@2141 3b5a3598-5f4e-4449-9e63-bd40438bfec0
  • Loading branch information
andersoberg committed Dec 17, 2019
1 parent ea34fd0 commit 6efff08
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions trdp/src/vos/api/vos_thread.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
/*
* $Id$
*
* AÖ 2019-12-17: Ticket #308: Add vos Sim function to API
* AÖ 2019-11-11: Ticket #290: Add support for Virtualization on Windows
* BL 2019-06-12: Ticket #238 VOS: Public API headers include private header file
* BL 2017-05-22: Ticket #122: Addendum for 64Bit compatibility (VOS_TIME_T -> VOS_TIMEVAL_T)
Expand Down Expand Up @@ -265,7 +266,32 @@ EXT_DECL VOS_ERR_T vos_threadTerminate (
EXT_DECL VOS_ERR_T vos_threadIsActive (
VOS_THREAD_T thread);

#ifdef SIM
/**********************************************************************************************************************/
/** Register a thread.
* All threads has to be registered in TimeSync for proper timing handeling.
* Only main thread has to call this funciton all other threads handle this internaly
*
* @param[in] pName Pointer to name of the thread (optional)
* @param[in] bStart Start TimeSync, if false the main tread has to perform start
* @retval VOS_NO_ERR no error
* @retval VOS_INIT_ERR failed to init
*/
EXT_DECL VOS_ERR_T vos_threadRegister(
const CHAR* pName,
BOOL bStart);

/**********************************************************************************************************************/
/** Set a instance prefix string.
* The instance prefix string is used as a prefix for shared simulation resources.
*
* @param[in] pPrefix Instance prefix name
* @retval VOS_NO_ERR no error
* @retval VOS_INIT_ERR failed to init
*/
EXT_DECL VOS_ERR_T vos_setTimeSyncPrefix(
const CHAR* pPrefix);
#endif
/**********************************************************************************************************************/
/* Timers
*/
Expand Down

0 comments on commit 6efff08

Please sign in to comment.