Toggle navigation
Toggle navigation
This project
Loading...
Sign in
UT
/
clsync
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
redmine
2014-08-29 15:28:36 +0400
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f7586f57eb24607d9d6d99758470e4cfee682803
f7586f57
1 parent
2c232879
Fixed variable types
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
main.c
main.h
pthreadex.c
pthreadex.h
main.c
View file @
f7586f5
...
...
@@ -292,7 +292,7 @@ int syntax() {
int
ncpus
;
pid_t
parent_pid
;
pid_t
waitpid_timed
(
pid_t
child_pid
,
int
*
status_p
,
__time_t
sec
,
__syscall_slong_t
nsec
)
{
pid_t
waitpid_timed
(
pid_t
child_pid
,
int
*
status_p
,
long
sec
,
long
nsec
)
{
struct
timespec
ts
;
int
status
;
...
...
main.h
View file @
f7586f5
...
...
@@ -37,5 +37,5 @@ extern char *parameter_expand(
extern
pid_t
fork_helper
();
extern
int
parent_isalive
();
extern
int
sethandler_sigchld
(
void
(
*
handler
)());
extern
pid_t
waitpid_timed
(
pid_t
child_pid
,
int
*
status_p
,
__time_t
sec
,
__syscall_slong_t
nsec
);
extern
pid_t
waitpid_timed
(
pid_t
child_pid
,
int
*
status_p
,
long
sec
,
long
nsec
);
...
...
pthreadex.c
View file @
f7586f5
...
...
@@ -58,7 +58,7 @@ int pthread_cond_destroy_shared(pthread_cond_t *cond_p) {
return
rc
;
}
int
pthread_mutex_reltimedlock
(
pthread_mutex_t
*
mutex_p
,
__time_t
tv_sec
,
__syscall_slong_t
tv_nsec
)
{
int
pthread_mutex_reltimedlock
(
pthread_mutex_t
*
mutex_p
,
long
tv_sec
,
long
tv_nsec
)
{
struct
timespec
abs_time
;
if
(
clock_gettime
(
CLOCK_REALTIME
,
&
abs_time
))
...
...
pthreadex.h
View file @
f7586f5
...
...
@@ -23,5 +23,5 @@ extern int pthread_mutex_init_shared(pthread_mutex_t **mutex_p);
extern
int
pthread_mutex_destroy_shared
(
pthread_mutex_t
*
mutex_p
);
extern
int
pthread_cond_init_shared
(
pthread_cond_t
**
cond_p
);
extern
int
pthread_cond_destroy_shared
(
pthread_cond_t
*
cond_p
);
extern
int
pthread_mutex_reltimedlock
(
pthread_mutex_t
*
mutex_p
,
__time_t
tv_sec
,
__syscall_slong_t
tv_nsec
);
extern
int
pthread_mutex_reltimedlock
(
pthread_mutex_t
*
mutex_p
,
long
tv_sec
,
long
tv_nsec
);
...
...
Please
register
or
login
to post a comment