Skip to content
Snippets Groups Projects
Commit da34bcf6 authored by Per Hedbor's avatar Per Hedbor
Browse files

o Added `() method in Thread, and inherit thread_id, it's thus possible to...

o Added `() method in Thread, and inherit thread_id, it's thus possible to write a program like this:
void foo()
{
  werror("thread\n");
  sleep(2);
}

void main(int argc, array argv)
{
  Thread t = Thread( foo );
  t->wait();
}


Also, added _sprintf() methods to most of the classes (Queue et.al.)

Rev: lib/modules/Thread.pmod:1.25
parent dfd826ab
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment