資源簡介
Express Logic's ThreadX for Win32 Demo Using Visual C/C++
This demo program is intended for use with the book titled
"Real-Time Embedded Multithreading: Using ThreadX and ARM"
by Edward L. Lamie.
代碼片段和文件信息
/*?02_sample_system.c
???Create?two?threads?one?byte?pool?and?one?mutex.
???The?threads?cooperate?with?each?other?via?the?mutex.??*/
/****************************************************/
/*????Declarations?Definitions?and?Prototypes?????*/
/****************************************************/
#include???“tx_api.h“
#include???
#define?????DEMO_STACK_SIZE?????????1024
#define?????DEMO_BYTE_POOL_SIZE?????9120
/*?Define?the?ThreadX?object?control?blocks...??*/
TX_THREAD???????????????speedy_thread;
TX_THREAD???????????????slow_thread;
TX_MUTEX????????????????my_mutex;
TX_BYTE_POOL????????????my_byte_pool;
/*?Define?thread?prototypes.??*/
void????speedy_thread_entry(ULONG?thread_input);
void????slow_thread_entry(ULONG?thread_input);
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
????......R??????4984??2004-08-02?07:12??ThreadX_Win32_demo\02_sample_system.c
????......R??????4714??2004-08-02?07:13??ThreadX_Win32_demo\07_sample_system.c
????......R??????6655??2004-08-02?07:14??ThreadX_Win32_demo\09_sample_system.c
????......R??????6950??2004-08-02?07:14??ThreadX_Win32_demo\10a_sample_system.c
????......R??????6462??2004-08-02?07:15??ThreadX_Win32_demo\10b_sample_system.c
????......R??????7562??2004-08-02?07:16??ThreadX_Win32_demo\11_sample_system.c
????......R??????6977??2004-08-02?07:26??ThreadX_Win32_demo\12_sample_system.c
????......R?????15814??2004-08-02?07:17??ThreadX_Win32_demo\14_sample_system.c
????......R?????14149??2004-08-02?07:30??ThreadX_Win32_demo\demo\Debug\02_sample_system.obj
????......R?????13959??2004-08-02?07:30??ThreadX_Win32_demo\demo\Debug\07_sample_system.obj
????......R?????17132??2004-08-02?07:29??ThreadX_Win32_demo\demo\Debug\09_sample_system.obj
????......R?????17167??2004-08-02?07:28??ThreadX_Win32_demo\demo\Debug\10a_sample_system.obj
????......R?????17010??2004-08-02?07:27??ThreadX_Win32_demo\demo\Debug\10b_sample_system.obj
????......R?????17889??2004-08-02?07:26??ThreadX_Win32_demo\demo\Debug\11_sample_system.obj
????......R?????17787??2004-08-02?07:24??ThreadX_Win32_demo\demo\Debug\12_sample_system.obj
????......R?????29376??2004-08-02?07:22??ThreadX_Win32_demo\demo\Debug\14_sample_system.obj
????......R?????29224??2004-08-02?06:33??ThreadX_Win32_demo\demo\Debug\case_study.obj
????......R????176186??2004-08-02?07:30??ThreadX_Win32_demo\demo\Debug\demo.exe
????......R????210804??2004-08-02?07:30??ThreadX_Win32_demo\demo\Debug\demo.ilk
????......R?????23989??2004-08-02?06:32??ThreadX_Win32_demo\demo\Debug\demo.obj
????......R???2828448??2004-08-02?07:24??ThreadX_Win32_demo\demo\Debug\demo.pch
????......R????771072??2004-08-02?07:30??ThreadX_Win32_demo\demo\Debug\demo.pdb
????......R?????14065??2004-08-02?06:34??ThreadX_Win32_demo\demo\Debug\project1.obj
????......R?????58368??2004-08-02?07:30??ThreadX_Win32_demo\demo\Debug\vc60.idb
????......R?????69632??2004-08-02?07:30??ThreadX_Win32_demo\demo\Debug\vc60.pdb
????......R??????4461??2004-08-02?07:30??ThreadX_Win32_demo\demo\demo.dsp
????......R???????863??2004-08-02?07:30??ThreadX_Win32_demo\demo\demo.plg
????......R?????12121??2004-07-28?06:36??ThreadX_Win32_demo\demo.c
????......R???????536??2004-07-27?04:08??ThreadX_Win32_demo\ThreadX.dsw
????......R????533504??2004-08-02?07:31??ThreadX_Win32_demo\ThreadX.ncb
............此處省略12個文件信息
- 上一篇:CChart開源版本,2013.10.14上傳
- 下一篇:逆透視變換IPM源碼
評論
共有 條評論