cvs commit: src/test/debug umtx.c

Matthew Dillon dillon at crater.dragonflybsd.org
Thu Jan 13 20:15:52 PST 2005


dillon      2005/01/13 20:15:12 PST

DragonFly src repository

  Added files:
    test/debug           umtx.c 
  Log:
  Add umtx.c, a simple utility which implements userland mutexes using
  the new umtx_*() system calls.  Compile normally and play around, e.g.:
  
  umtx -v -t 10 /tmp/lock.dat sleep 5
  umtx -v -t 10 /tmp/lock.dat ls
  
  The test code includes some simple ^C cleanup code as well, though I
  don't block signals during the global variable fixup so there is a race in
  the ^C cleanup code.






More information about the Commits mailing list