Browse Source

Create task with detach flag.

master
Hanhui 6 years ago
parent
commit
2067800617
  1. 4
      target/h/version.h
  2. 2
      target/src/taskLib.c

4
target/h/version.h

@ -35,7 +35,7 @@
#define _LIB_VXWORKS_MAJOR 0
#define _LIB_VXWORKS_MINOR 3
#define _LIB_VXWORKS_MAINT 3
#define _LIB_VXWORKS_MAINT 4
/* there is now a space between the runtime name, and the version */
@ -45,7 +45,7 @@
/* VxWorks compatibility layer */
/* 0.1.1 add cpu affinity */
#define LIB_VXWORKS_VERSION "SylixOS Compatibility Pack 0.3.3"
#define LIB_VXWORKS_VERSION "SylixOS Compatibility Pack 0.3.4"
#ifdef __cplusplus
extern "C" {

2
target/src/taskLib.c

@ -176,7 +176,7 @@ STATUS taskInit (WIND_TCB *pTcb, char *name, int priority,
attr.THREADATTR_pvArg = LW_NULL;
attr.THREADATTR_stStackByteSize = (size_t)stackSize;
attr.THREADATTR_ucPriority = (UINT8)priority;
attr.THREADATTR_ulOption = LW_OPTION_THREAD_STK_CHK;
attr.THREADATTR_ulOption = LW_OPTION_THREAD_STK_CHK | LW_OPTION_THREAD_DETACHED;
pTcb->entry = entryPt;
pTcb->arg[0] = arg1;

Loading…
Cancel
Save