#include <pthread.h>
#include <errno.h>
#include <signal.h>
#include <stdlib.h>
#include <time.h>
#include "common.h"
#include "libjio.h"
#include "compat.h"
Go to the source code of this file.
Data Structures | |
struct | autosync_cfg |
Configuration of an autosync thread. More... | |
Functions | |
static void * | autosync_thread (void *arg) |
Thread that performs the automatic syncing. | |
int | jfs_autosync_start (struct jfs *fs, time_t max_sec, size_t max_bytes) |
Start an autosync thread. | |
int | jfs_autosync_stop (struct jfs *fs) |
Stop an autosync thread that was started using jfs_autosync_start(fs). | |
void | autosync_check (struct jfs *fs) |
Notify the autosync thread that it should check the number of bytes written. |
static void* autosync_thread | ( | void * | arg | ) | [static] |
Thread that performs the automatic syncing.
Definition at line 42 of file autosync.c.
Referenced by jfs_autosync_start().
void autosync_check | ( | struct jfs * | fs | ) |
Notify the autosync thread that it should check the number of bytes written.
Must be called with fs' ltlock held.
Definition at line 134 of file autosync.c.
Referenced by jtrans_commit().