删除无用代码
This commit is contained in:
@@ -14,17 +14,10 @@ extern "C"
|
|||||||
{
|
{
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <pthread.h>
|
|
||||||
|
|
||||||
#define MESA_PTHREAD_CACHE_BUF_DEFAULT_LEN 1024
|
|
||||||
#define MESA_PTHREAD_FMT_BUF_DEFAULT_LEN 256
|
|
||||||
extern pthread_key_t MESA_pthread_key;
|
|
||||||
void MESA_pthread_free_handler(void *arg);
|
|
||||||
|
|
||||||
typedef int (*MESA_fmt_handler)(void *info, char *buf, int buflen);
|
typedef int (*MESA_fmt_handler)(void *info, char *buf, int buflen);
|
||||||
int MESA_handle_fmt_rule_register(void *handle, char sign, MESA_fmt_handler handler, int buflen);
|
int MESA_handle_fmt_rule_register(void *handle, char sign, MESA_fmt_handler handler, int buflen);
|
||||||
int MESA_handle_check_fmt_sign(void *handle, char sign, MESA_fmt_handler *handler, char **buf, int *maxlen);
|
int MESA_handle_check_fmt_sign(void *handle, char sign, MESA_fmt_handler *handler, char **buf, int *maxlen);
|
||||||
void MESA_free_pthread_private(void *arg);
|
|
||||||
|
|
||||||
|
|
||||||
#define RLOG_LV_DEBUG 10
|
#define RLOG_LV_DEBUG 10
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
#include "MESA_handle_logger.h"
|
#include "MESA_handle_logger.h"
|
||||||
#include "snprintf.h"
|
#include "snprintf.h"
|
||||||
|
#include <pthread.h>
|
||||||
#include "zlog.h"
|
#include "zlog.h"
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
@@ -18,6 +19,9 @@ static char global_conf_filepath[MAX_HANDLE_LOG_PATH] = "";
|
|||||||
static char tmp_conf_filepath[MAX_HANDLE_LOG_PATH] = "";
|
static char tmp_conf_filepath[MAX_HANDLE_LOG_PATH] = "";
|
||||||
|
|
||||||
#define MESA_FORMAT_RULE_MAX 16
|
#define MESA_FORMAT_RULE_MAX 16
|
||||||
|
#define MESA_PTHREAD_CACHE_BUF_DEFAULT_LEN 1024
|
||||||
|
#define MESA_PTHREAD_FMT_BUF_DEFAULT_LEN 256
|
||||||
|
|
||||||
pthread_key_t MESA_pthread_key;
|
pthread_key_t MESA_pthread_key;
|
||||||
pthread_once_t MESA_pthread_key_once = PTHREAD_ONCE_INIT;
|
pthread_once_t MESA_pthread_key_once = PTHREAD_ONCE_INIT;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user