Skip to content

flock with timeout support #6

@glensc

Description

@glensc

I like FlockMutex because it work on kernel level and is reliable.

however there's the problem that acquiring the lock makes program wait forever. I wish to get error "unable to obtain lock withing timeout"

for flock there's LOCK_NB flag which can be used.

ps: SemaphoreMutex has similar issue

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions