1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-17 21:25:58 +02:00

Add a threads sample.

This commit is contained in:
Pawel Piech 2009-03-19 17:38:58 +00:00
parent 057fdbe4a5
commit 7a3355c0fb

View file

@ -0,0 +1,23 @@
push 5
:thread_create
exec foo
dec
dup
branch_not_zero thread_create
push finished
output
halt
:foo
push thread_created
output
call inner
halt
:inner
var b
call inner2
push 2
return
:inner2
var c
push 3
return