ub_server_running
2016-06-22 11:31:05 0 举报
ub_server_running 是一个用于检查服务器运行状态的变量。当服务器正常运行时,该变量的值为 True,表示服务器正在运行;当服务器出现故障或停止运行时,该变量的值为 False,表示服务器已停止运行。通过监控 ub_server_running 变量的值,可以实时了解服务器的运行状况,从而及时发现并处理潜在的问题。在编写自动化脚本或程序时,可以使用 ub_server_running 变量来控制程序的执行流程,例如在服务器正常运行时执行某些操作,而在服务器停止运行时执行其他操作。总之,ub_server_running 是一个实用的变量,可以帮助我们更好地管理和监控服务器。
作者其他创作
大纲/内容
......
指针service_handler_base*
thread_data
12 pointers 1 per threadeach stores addr of athread_instance_data obj
int epfd
type=void *size=8 bytes
字符串\"create_direct_trans\"
内部调用obj-handle()
void* data
thread_instance_data
create_direct_trans_service obj
epoll
malloc-edsize=655360
pay_direct_trans_service obj
malloc-edsize=131072
void* parent
12 thread_instance_data obj in heap memory
ub_server_pdata_t
.................................
ub_server_handle
Stack
void* usersef_buf
each per-thread pointerstores addr of another pointer storing the addr of the per-thread thread_instance_data obj
type=void*size=sizeof(/thread_instance_data**)
1)inside one thread_instance_data its thread_data member variable is used by all service objs like create_direct_trans_serice for construction2)members of thread_data like sql_db_session_map are initialized inside constructors of service classes like create_direct_trans_service
int (* cb_native)()
void* write_buf
....................
nshead
pthread_t pid
thread_instance_data for thread 0newed inside dispatcher::create_thread_datahold own map of cmd-service_handler_wrapper*
void* user_buf
total size=12*sizeof(void *)there are 12 pointers1 per thread
void* read_buf
.........................
int sev_sock
字符串\"pay_direct_trans\"
mcpack
void* pool
each thread_instance_data objhas its own set of pointerspointing to their own set of service objs like create_direct_trans_serivce
int fd
Heap
写出
redis_client *p_redis_client_
Code
int (* cb_drastic)()
use own thread_data for construction
读入
Data
0 条评论
下一页