This website works better with JavaScript.
Home
Help
Sign In
non
/
non
mirror of
https://github.com/original-male/non
Watch
1
Star
0
Fork
0
Code
Releases
11
Activity
Browse Source
Timeline: Don't attempt to join thread that hasn't been created.
Closes
:
#154
tags/non-daw-v1.2.0
Jonathan Moore Liles
9 years ago
parent
0047df03fe
commit
8a58591067
1 changed files
with
5 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+5
-1
nonlib/Thread.C
+ 5
- 1
nonlib/Thread.C
View File
@@ -129,7 +129,11 @@ Thread::cancel ( void )
void
Thread::join ( void )
{
pthread_join( _thread, NULL );
if ( _thread != 0 )
{
/* not joined yet, go ahead. */
pthread_join( _thread, NULL );
}
_thread = 0;
}
Write
Preview
Loading…
Cancel
Save