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:
parent
057fdbe4a5
commit
7a3355c0fb
1 changed files with 23 additions and 0 deletions
23
dsf/org.eclipse.cdt.examples.dsf.pda/samples/threads.pda
Normal file
23
dsf/org.eclipse.cdt.examples.dsf.pda/samples/threads.pda
Normal 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
|
Loading…
Add table
Reference in a new issue