git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@334 35acf78f-673a-0410-8e92-d51de3d6d3f4

This commit is contained in:
gdisirio 2008-07-05 07:11:12 +00:00
parent f53cac6961
commit aa8ef7e8e7
2 changed files with 6 additions and 5 deletions

View File

@ -76,9 +76,10 @@ Win32-MinGW - ChibiOS/RT simulator and demo into a WIN32 process,
*** 0.6.7 *** *** 0.6.7 ***
- NEW: New chThdCreateFast() API, it is a simplified form of chThdCreate() - NEW: New chThdCreateFast() API, it is a simplified form of chThdCreate()
that allows even faster threads creation. The new API does not support that allows even faster threads creation. The new API does not support
the "mode" and "arg" parameters (still available in the old API). the "mode" and "arg" parameters (still available in the old API).
- OPT: Removed an unrequired initialization from the chThdCreate(). - OPT: Removed an unrequired initialization and made other small optimizations
to the chThdCreate().
- OPT: Improvements to the test framework, now a virtual timer is used instead - OPT: Improvements to the test framework, now a virtual timer is used instead
of software loops into the bechmarks in order to have more stable results. of software loops into the bechmarks in order to have more stable results.
- Added the C++ wrapper entries to the documentation. - Added the C++ wrapper entries to the documentation.

View File

@ -97,8 +97,8 @@ Thread *chThdCreate(tprio_t prio, tmode_t mode, void *workspace,
#ifdef CH_USE_DEBUG #ifdef CH_USE_DEBUG
memfill(workspace, wsize, MEM_FILL_PATTERN); memfill(workspace, wsize, MEM_FILL_PATTERN);
#endif #endif
init_thread(prio, mode, tp);
SETUP_CONTEXT(workspace, wsize, pf, arg); SETUP_CONTEXT(workspace, wsize, pf, arg);
init_thread(prio, mode, tp);
#ifdef CH_USE_RESUME #ifdef CH_USE_RESUME
if (tp->p_flags & P_SUSPENDED) if (tp->p_flags & P_SUSPENDED)
tp->p_state = PRSUSPENDED; tp->p_state = PRSUSPENDED;
@ -137,8 +137,8 @@ Thread *chThdCreateFast(tprio_t prio, void *workspace,
#ifdef CH_USE_DEBUG #ifdef CH_USE_DEBUG
memfill(workspace, wsize, MEM_FILL_PATTERN); memfill(workspace, wsize, MEM_FILL_PATTERN);
#endif #endif
init_thread(prio, 0, tp);
SETUP_CONTEXT(workspace, wsize, pf, NULL); SETUP_CONTEXT(workspace, wsize, pf, NULL);
init_thread(prio, 0, tp);
chSysLock(); chSysLock();
chSchWakeupS(tp, RDY_OK); chSchWakeupS(tp, RDY_OK);
chSysUnlock(); chSysUnlock();