? mkthread ? eCos_kernel.patch Index: include/mqueue.hxx =================================================================== RCS file: /cvs/ecos/ecos/packages/kernel/current/include/mqueue.hxx,v retrieving revision 1.4 diff -r1.4 mqueue.hxx 85a86,89 > #ifdef CYGFUN_KERNEL_THREADS_TIMER > INTR, > TIMEOUT > #else 86a91 > #endif 124a130,133 > #ifdef CYGFUN_KERNEL_THREADS_TIMER > // put() copies len bytes of *buf into the queue at priority prio > qerr_t put( const char *buf, size_t len, unsigned int prio, > bool block=true, cyg_tick_count timeout = 0 ); 125a135,140 > // get() returns the oldest highest priority message in the queue in *buf > // and sets *prio to the priority (if prio is non-NULL) and *len to the > // actual message size > qerr_t get( char *buf, size_t *len, unsigned int *prio, bool block=true, > cyg_tick_count timeout = 0 ); > #else 133a149 > #endif Index: include/mqueue.inl =================================================================== RCS file: /cvs/ecos/ecos/packages/kernel/current/include/mqueue.inl,v retrieving revision 1.5 diff -r1.5 mqueue.inl 273a274,278 > #ifdef CYGFUN_KERNEL_THREADS_TIMER > CYGPRI_KERNEL_SYNCH_MQUEUE_INLINE Cyg_Mqueue::qerr_t > Cyg_Mqueue::put( const char *buf, size_t len, unsigned int prio, bool block, > cyg_tick_count timeout ) > #else 275a281 > #endif 288a295,303 > #ifdef CYGFUN_KERNEL_THREADS_TIMER > if ( timeout != 0) { > if ( false == putsem.wait(timeout) ) { > err = TIMEOUT; > goto exit; > } > } > else > #endif 380a396,400 > #ifdef CYGFUN_KERNEL_THREADS_TIMER > CYGPRI_KERNEL_SYNCH_MQUEUE_INLINE Cyg_Mqueue::qerr_t > Cyg_Mqueue::get( char *buf, size_t *len, unsigned int *prio, bool block, > cyg_tick_count timeout ) > #else 382a403 > #endif 397a419,427 > #ifdef CYGFUN_KERNEL_THREADS_TIMER > if ( timeout != 0) { > if ( false == getsem.wait(timeout) ) { > err = TIMEOUT; > goto exit; > } > } > else > #endif