MiniOB 1
MiniOB is one mini database, helping developers to learn how database works.
载入中...
搜索中...
未找到
Public 成员函数 | Private 成员函数 | Private 属性 | 所有成员列表
common::TimeoutInfo类 参考

#include <timeout_info.h>

Public 成员函数

 TimeoutInfo (time_t deadline_)
 
void attach ()
 
void detach ()
 
bool has_timed_out ()
 

Private 成员函数

 TimeoutInfo (const TimeoutInfo &ti)
 
TimeoutInfooperator= (const TimeoutInfo &ti)
 

Private 属性

time_t deadline_
 
bool is_timed_out_
 
int ref_cnt_
 
pthread_mutex_t mutex_
 

详细描述

Timeout info class used to judge if a certain deadline_ has reached or not. It's good to use handle-body to automate the reference count increase/decrease. However, explicit attach/detach interfaces are used here to simplify the implementation.

构造及析构函数说明

◆ TimeoutInfo()

common::TimeoutInfo::TimeoutInfo ( time_t  deadline_)

Constructor

参数
[in]deadline_deadline_ of this timeout

该类的文档由以下文件生成: