doc
|
Functions | |
int | csync_lock (CSYNC *ctx, const char *lockfile) |
void | csync_lock_remove (CSYNC *ctx, const char *lockfile) |
int csync_lock | ( | CSYNC * | ctx, |
const char * | lockfile | ||
) |
Lock the client if possible.
This functiion tries to lock the client with a lock file.
lockfile | The lock file to create. |
void csync_lock_remove | ( | CSYNC * | ctx, |
const char * | lockfile | ||
) |
Remove the lockfile.
Only our own lock can be removed. This function can't remove a lock from another client.
lockfile | The lock file to remove. |