citadel
About: Citadel is an advanced messaging and collaboration system for groupware and BBS applications (preferred OS: Linux).
  Fossies Dox: citadel.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

housekeeping.c File Reference
#include <stdio.h>
#include <libcitadel.h>
#include "ctdl_module.h"
#include "serv_extensions.h"
#include "room_ops.h"
#include "internet_addressing.h"
#include "config.h"
#include "journaling.h"
#include "citadel_ldap.h"
Include dependency graph for housekeeping.c:

Go to the source code of this file.

Functions

void check_sched_shutdown (void)
 
void check_ref_counts_backend (struct ctdlroom *qrbuf, void *data)
 
void check_ref_counts (void)
 
void keep_an_eye_on_memory_usage (void)
 
void do_housekeeping (void)
 
void CtdlDisableHouseKeeping (void)
 
void CtdlEnableHouseKeeping (void)
 

Variables

static int housekeeping_in_progress = 0
 
static int housekeeping_disabled = 0
 
static time_t last_timer = 0L
 

Function Documentation

◆ check_ref_counts()

◆ check_ref_counts_backend()

void check_ref_counts_backend ( struct ctdlroom qrbuf,
void *  data 
)

Definition at line 31 of file housekeeping.c.

References qrbuf, and ctdlroom::QRfloor.

Referenced by check_ref_counts().

◆ check_sched_shutdown()

void check_sched_shutdown ( void  )

Definition at line 21 of file housekeeping.c.

References ContextList, ScheduledShutdown, and server_shutting_down.

◆ CtdlDisableHouseKeeping()

void CtdlDisableHouseKeeping ( void  )

◆ CtdlEnableHouseKeeping()

void CtdlEnableHouseKeeping ( void  )

◆ do_housekeeping()

◆ keep_an_eye_on_memory_usage()

void keep_an_eye_on_memory_usage ( void  )

Definition at line 72 of file housekeeping.c.

Referenced by do_housekeeping().

Variable Documentation

◆ housekeeping_disabled

int housekeeping_disabled = 0
static

Definition at line 84 of file housekeeping.c.

Referenced by CtdlDisableHouseKeeping(), and do_housekeeping().

◆ housekeeping_in_progress

int housekeeping_in_progress = 0
static

Definition at line 83 of file housekeeping.c.

Referenced by CtdlDisableHouseKeeping(), CtdlEnableHouseKeeping(), and do_housekeeping().

◆ last_timer

time_t last_timer = 0L
static

Definition at line 85 of file housekeeping.c.

Referenced by do_housekeeping().