Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
Icecast-Server
Commits
0dbd488c
Commit
0dbd488c
authored
Apr 30, 2002
by
Michael Smith
Browse files
Don't use start after freeing it in thread startup code.
svn path=/trunk/thread/; revision=3264
parent
338f6a0a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/thread/thread.c
View file @
0dbd488c
...
@@ -574,6 +574,7 @@ static void *_start_routine(void *arg)
...
@@ -574,6 +574,7 @@ static void *_start_routine(void *arg)
void
*
(
*
start_routine
)(
void
*
)
=
start
->
start_routine
;
void
*
(
*
start_routine
)(
void
*
)
=
start
->
start_routine
;
void
*
real_arg
=
start
->
arg
;
void
*
real_arg
=
start
->
arg
;
thread_t
*
thread
=
start
->
thread
;
thread_t
*
thread
=
start
->
thread
;
int
detach
=
start
->
detached
;
_block_signals
();
_block_signals
();
...
@@ -587,7 +588,7 @@ static void *_start_routine(void *arg)
...
@@ -587,7 +588,7 @@ static void *_start_routine(void *arg)
LOG_INFO4
(
"Added thread %d [%s] started at [%s:%d]"
,
thread
->
thread_id
,
thread
->
name
,
thread
->
file
,
thread
->
line
);
LOG_INFO4
(
"Added thread %d [%s] started at [%s:%d]"
,
thread
->
thread_id
,
thread
->
name
,
thread
->
file
,
thread
->
line
);
if
(
start
->
detach
ed
)
{
if
(
detach
)
{
pthread_detach
(
thread
->
sys_thread
);
pthread_detach
(
thread
->
sys_thread
);
}
}
pthread_setcancelstate
(
PTHREAD_CANCEL_ENABLE
,
NULL
);
pthread_setcancelstate
(
PTHREAD_CANCEL_ENABLE
,
NULL
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment