Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
胡斌
/
srs
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
winlin
2014-10-26 13:43:11 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
388305f44cdb368a58f285158832cd6bb6202116
388305f4
1 parent
85c2398e
update st research.
显示空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
31 行增加
和
0 行删除
trunk/research/st/srs.c
trunk/research/st/srs.c
查看文件 @
388305f
#include <unistd.h>
#include <stdio.h>
#include "public.h"
#define srs_trace(msg, ...) printf(msg, ##__VA_ARGS__);printf("\n")
void
*
pfn
(
void
*
arg
)
{
st_sleep
(
1
);
srs_trace
(
"st thread is ok"
);
return
NULL
;
}
int
main
(
int
argc
,
char
**
argv
)
{
if
(
st_set_eventsys
(
ST_EVENTSYS_ALT
)
<
0
)
{
srs_trace
(
"st_set_eventsys failed"
);
return
-
1
;
}
if
(
st_init
()
<
0
)
{
srs_trace
(
"st_init failed"
);
return
-
1
;
}
if
(
!
st_thread_create
(
pfn
,
NULL
,
0
,
0
))
{
srs_trace
(
"st_thread_create failed"
);
return
-
1
;
}
srs_trace
(
"st is ok"
);
st_thread_exit
(
NULL
);
return
0
;
}
...
...
请
注册
或
登录
后发表评论