This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
resume thread
- From: "Sicheri Marco" <m dot sicheri at ctsgroup dot it>
- To: "eCos Discus.List" <ecos-discuss at sources dot redhat dot com>
- Date: Wed, 20 Oct 2004 14:39:17 +0200
- Subject: [ECOS] resume thread
- Organization: CTS electronics
- Reply-to: "Sicheri Marco" <m dot sicheri at ctsgroup dot it>
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