This is the mail archive of the ecos-discuss@sources.redhat.com 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]

resume thread


Hi all,
I have a dubious.....
In my application some thread are running.

Thread 'A' run each 30 ticks, priority: 30
Thread 'B' run each 5 ticks, priority: 10
I'd like:
the thread 'B' post a message (cyg_mbox_put) to thread 'A' and i'd like that
thread 'A' go run after that.
How do i do?
I think:
cyg_mbox_put();
cyg_thread_resume(thread'A');
Is it correct?

Thanks!

Ossequi,  (Best Regards/Obrigado)
Marco SICHERI
CTS electronics  - R&D Department
phone: +39 0125 235637, +39 0125 235630
e-mail: m.sicheri@ctsgroup.it
http://www.ctsgroup.it


-- 
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]