This is the mail archive of the
ecos-devel@sources.redhat.com
mailing list for the eCos project.
Running Two Threads
- From: Raghu <raghu_dk at yahoo dot com>
- To: I have a ecos <ecos-devel at sources dot redhat dot com>
- Date: Thu, 7 Apr 2005 22:44:15 -0700 (PDT)
- Subject: Running Two Threads
- Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=U+PVkSMacgJrmX3/UxJySM30KhFocJmROspG8ISfqCTKvecekz3RotfZBV9AdKStCSAWD0jePiYWDgcwzlMUL/6fz2IgOj+X861wsk4kSAzckzh0xMyc5OGACAQCVNjvhVVSmTlyyLIKsDKthuDTf70SIjxkSFSQID5epAcJ2O8= ;
Hi All,
I wanted a minimal command line interface in eCOS. So
I took the "Redboot" parser and command interface and
implemented some commands. I have a IXP425 based
board.
When I use the call "cyg_user_start" within which I
have all my command line processing, the application
works fine.
But within "cyg_user_start" if I spawn a thread and
due the command line processing within this thread, it
does not give any o/p on the console and the thread
seems to be suspended.
But I have spawn a "dummy" thread, the dummy thread
runs fine.
The "cyg_io_read" & "cyg_io_write" are documented to
be "blocking calls" but I tried with setting the
option, CYGOPT_IO_SERIAL_SUPPORT_NONBLOCKING in
ecos.ecc and also "cyg_io_set_config" but with no
significance.
Any clues please ? TIA.
Regards,
Raghu
RedBoot> go
Launching Command Line Interface
Begining dummy thread 1
ID Name Priority State
0x0001 Idle Thread 31 Running
0x0002 main 10 Excited
0x0003 Command Line 15 Running
0x0004 Dummy Thread 15 Running
Command line 0
T600 Command Line Interface, version
1.0
Built on Apr 8 2005 10:55:41
Read Blocking = 0x0
Write Blocking = 0x0
Read Blocking = 0x0
Write Blocking = 0x0
ecos>
ID Name Priority State
0x0001 Idle Thread 31 Running
0x0002 main 10 Excited
0x0003 Command Line 15 Running
0x0004 Dummy Thread 15 Running
__________________________________
Do you Yahoo!?
Yahoo! Personals - Better first dates. More second dates.
http://personals.yahoo.com