This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Using a Mix of Posix and native calls.


Hi,

I've just started working on ecos.  I've a basic query.

 

Suppose, we use ecos native call(cyg_thread_create) to create a
task(TASK A).  We have another timer task that implements the software
timers. 

We have a func. timerAdd(), that sets the timeout call. It uses
pthread_cleanup_push with actual "internal timer add function" as
argument, followed by pthread_cleanup_pop(1) to execute the registered
handler. The function timerAdd()  is called in the context of TASK A.
We are getting exception while executing pthread push and pop
instructions.  It looks to me that this exception might be happening
because the task which makes a call to the above mentioned posix calls,
was not created using posix pthread routines.   

 

Is my understanding correct? Can we have a mix of posix and native calls
under some conditions?

 

 

Warm Regards
Venkateswara Rao.
-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]