returning thread on thread-start!

This commit is contained in:
Alex Shinn 2010-08-26 01:37:53 +09:00
parent ac05d24594
commit 0bfb97851b

View file

@ -80,7 +80,7 @@ sexp sexp_thread_start (sexp ctx sexp_api_params(self, n), sexp thread) {
} else { /* init queue */ } else { /* init queue */
sexp_global(ctx, SEXP_G_THREADS_BACK) = sexp_global(ctx, SEXP_G_THREADS_FRONT) = cell; sexp_global(ctx, SEXP_G_THREADS_BACK) = sexp_global(ctx, SEXP_G_THREADS_FRONT) = cell;
} }
return SEXP_VOID; return thread;
} }
sexp sexp_thread_terminate (sexp ctx sexp_api_params(self, n), sexp thread) { sexp sexp_thread_terminate (sexp ctx sexp_api_params(self, n), sexp thread) {