Spencer Salazarnew testing framework3e7be8b13 years agoHistory
27 lines · 442 B · Text
RawDownload
// 41.ck : event // declare an eventEvent e; // declare functionfun int hi( Event e ){    // wait on event e    e => now;     // this only happens AFTER e is signaled    <<<"success">>>;} // spork shred with espork ~ hi( e ); // allow time to pass to give the shred a chance to run1::ms => now; // signal ee.signal(); // advance time to let the other shred run// (the parent shred will free the child shred)1::samp => now;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t