This is the mail archive of the ecos-devel@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]

Running Two Threads


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


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