Permalink
Browse files

thread_is_single(): fixed inverted logic in previous commit.

  • Loading branch information...
1 parent 1b34f93 commit 20c8be96ac02d5de67ff5f5bfd57343f34ea2238 @rmanfredi rmanfredi committed Apr 27, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/lib/thread.c
View
@@ -1106,7 +1106,7 @@ thread_is_single(void)
* we've registered a thread #1 yet but not yet completed the
* creation of its thread element.
*/
- return tstid[1] != 0;
+ return 0 == tstid[1]; /* No thread #1 => single thread */
} else {
(void) thread_current(); /* Counts threads */
return 1 >= thread_next_stid;

0 comments on commit 20c8be9

Please sign in to comment.