autosync.c File Reference

#include <pthread.h>
#include <errno.h>
#include <signal.h>
#include <stdlib.h>
#include <time.h>
#include "common.h"
#include "libjio.h"
#include "compat.h"

Include dependency graph for autosync.c:

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.


Function Documentation

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the caller graph for this function:


Generated on Sat Sep 12 13:33:30 2009 for libjio (internal) by  doxygen 1.5.8