Menu

#326 The Mutex code without using flock()

closed-accepted
nobody
None
5
2004-12-07
2004-12-06
No

I've implemented the Mutex code without using flock().
This code use mkdir() for exclusive control.

The code passed the test suite (TestMutex.tst) on
Windows 98 and Mac OS X 10.3.6.
Here is the result of the test suite:

Running TestMutex.tst... at line: | 5ok (7 ok)

7 tests, 7 ok, 0 failed

Naoki

Discussion

  • naoki iimura

    naoki iimura - 2004-12-06

    POPFile/Mutex.pm diff from 0.22.2RC2

     
  • naoki iimura

    naoki iimura - 2004-12-06

    POPFile/Mutex.pm implemented without flock()

     
  • John Graham-Cumming

    • status: open --> closed-accepted
     
  • John Graham-Cumming

    Logged In: YES
    user_id=578491

    I have tested this on Linux and Windows 2000 and committed
    it. Thanks, I was thinking about doing it this way but you
    beat me to it!

    John.

     

Log in to post a comment.

MongoDB Logo MongoDB