/* -*- C++ -*- (c) 2007 Petr Rockai (c) 2007 Enrico Zini */ #include #include #include #include using namespace std; using namespace wibble::sys::fs; struct TestLockfile { // Cannot test the locks without forking, as reacquiring the lock from the // same process is just an update of the previous lock Test readlock() { #ifdef POSIX Lockfile lk1("testlock", false); #endif } Test writelock() { #ifdef POSIX Lockfile lk1("testlock", true); #endif } }; // vim:set ts=4 sw=4: