DevHeads.net

Review Request: Add flock()/lockf()-based locking mechanizm to KSharedDataCache

Review request for kdelibs and Michael Pyne.

Description
This patch adds another lock type, to be used as a last resort when no non-blocking lock mechanisms are available on the current platform.

LOCKTYPE_FILE = 4 for compatibility with atomic-based locking mechanism patch in another review.

This addresses bug 305023.
<a href="http://bugs.kde.org/show_bug.cgi?id=305023" title="http://bugs.kde.org/show_bug.cgi?id=305023">http://bugs.kde.org/show_bug.cgi?id=305023</a>

Diffs
kdecore/util/ConfigureChecks.cmake fe9f47e
kdecore/util/config-util.h.cmake 83ccdf7
kdecore/util/kshareddatacache.cpp 393902e
kdecore/util/kshareddatacache_p.h ec5a7a0

Diff: <a href="http://git.reviewboard.kde.org/r/106237/diff/" title="http://git.reviewboard.kde.org/r/106237/diff/">http://git.reviewboard.kde.org/r/106237/diff/</a>

Testing
On OpenBSD-CURRENT.

Thanks,

Vadim Zhukov

Comments

Re: Review Request 106237: Add flock()/lockf()-based locking mec

By Vadim Zhukov at 06/30/2014 - 18:03

(Updated July 1, 2014, 3:03 a.m.)

Status
This change has been discarded.

Review request for kdelibs and Michael Pyne.

Bugs: 305023
<a href="http://bugs.kde.org/show_bug.cgi?id=305023" title="http://bugs.kde.org/show_bug.cgi?id=305023">http://bugs.kde.org/show_bug.cgi?id=305023</a>

Repository: kdelibs

Description
This patch adds another lock type, to be used as a last resort when no non-blocking lock mechanisms are available on the current platform.

LOCKTYPE_FILE = 4 for compatibility with atomic-based locking mechanism patch in another review.

Diffs
kdecore/util/ConfigureChecks.cmake fe9f47e
kdecore/util/config-util.h.cmake 83ccdf7
kdecore/util/kshareddatacache.cpp 393902e
kdecore/util/kshareddatacache_p.h ec5a7a0

Diff: <a href="https://git.reviewboard.kde.org/r/106237/diff/" title="https://git.reviewboard.kde.org/r/106237/diff/">https://git.reviewboard.kde.org/r/106237/diff/</a>

Testing
On OpenBSD-CURRENT.

Thanks,

Vadim Zhukov