FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
Cplusplus_Thread_Lib/TestThread.cpp at master · tdmm/Cplusplus_Thread_Lib · GitHub
tdmm
/
Cplusplus_Thread_Lib
Public
forked from
wyh267/Cplusplus_Thread_Lib
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
Cplusplus_Thread_Lib
/
TestThread.cpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
54 lines (29 loc) · 674 Bytes
Breadcrumbs
Cplusplus_Thread_Lib
/
TestThread.cpp
Copy path
File metadata and controls
executable file
·
54 lines (29 loc) · 674 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#
include
"
TestThread.h
"
#
include
"
COperatingSystemFactory.h
"
#
include
<
stdio.h
>
#
include
<
stdlib.h
>
#
include
<
string.h
>
#
include
<
unistd.h
>
#
include
<
assert.h
>
TestThread::TestThread
(
const
char
*m_name):
CThread(m_name)
{
//
add your code here
}
TestThread::~TestThread
()
{
}
void
TestThread::mainLoop
()
{
unsigned
int
code;
void
*p_msg;
while
(
1
)
{
p_msg_rev->
recvMsg
(code, p_msg);
printf
(
"
<<<<<<<%s is Running....recv data from message queue: code is : [%d] data is : [%s]
\n
"
,p_thread_name,code,(
char
*)p_msg);
}
}
void
TestThread::setMsgQueue
(CMsgQueue *q)
{
p_msg_rev=q;
}
Back
|
FazBrowse Home
|
New Git URL