diff options
Diffstat (limited to 'examples/pthreads/pthreads.tm')
| -rw-r--r-- | examples/pthreads/pthreads.tm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/pthreads/pthreads.tm b/examples/pthreads/pthreads.tm index 975b981d..fb79e822 100644 --- a/examples/pthreads/pthreads.tm +++ b/examples/pthreads/pthreads.tm @@ -65,7 +65,7 @@ struct pthread_t(; extern, opaque): func detatch(p:pthread_t): inline C { pthread_detach(_$p); } struct IntQueue(_queue:@[Int], _mutex:@pthread_mutex_t, _cond:@pthread_cond_t): - func new(initial=[:Int] -> IntQueue): + func new(initial:[Int]=[] -> IntQueue): return IntQueue(@initial, pthread_mutex_t.new(), pthread_cond_t.new()) func give(q:IntQueue, n:Int): |
