这篇教程C++ zlog_info函数代码示例写得很实用,希望能帮到您。
本文整理汇总了C++中zlog_info函数的典型用法代码示例。如果您正苦于以下问题:C++ zlog_info函数的具体用法?C++ zlog_info怎么用?C++ zlog_info使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。 在下文中一共展示了zlog_info函数的28个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。 示例1: http_engine_setup_worker_directorieschar *http_engine_setup_worker_directories(){ static int worker_id = 0; char dir_name[MAX_NAME_LENGTH] = {0}; char worker_id_str[10] = {0}; struct stat st = {0}; int error = 0; http_config_t *global_config = http_config_get(); sprintf(worker_id_str, "%d", ++worker_id); /* Setup directory name */ strncpy(dir_name, global_config->output_directory, strlen(global_config->output_directory)); strcat(dir_name, "/worker_"); strncat(dir_name, worker_id_str, strlen(worker_id_str)); if (stat(dir_name, &st) == -1) { zlog_info(log_get_cat(), "Creating directory: %s", dir_name); error = mkdir(dir_name, 0777); } if (error) { return NULL; } return(strdup(dir_name));}
开发者ID:niks3089,项目名称:nixia,代码行数:29,
示例2: twoway_receivedinttwoway_received (struct thread *thread){ struct ospf6_neighbor *on; on = (struct ospf6_neighbor *) THREAD_ARG (thread); assert (on); if (on->state > OSPF6_NEIGHBOR_INIT) return 0; if (IS_OSPF6_DEBUG_NEIGHBOR (EVENT)) zlog_info ("Neighbor Event %s: *2Way-Received*", on->name); thread_add_event (master, neighbor_change, on->ospf6_if, 0); if (! need_adjacency (on)) { ospf6_neighbor_state_change (OSPF6_NEIGHBOR_TWOWAY, on); return 0; } ospf6_neighbor_state_change (OSPF6_NEIGHBOR_EXSTART, on); SET_FLAG (on->dbdesc_bits, OSPF6_DBDESC_MSBIT); SET_FLAG (on->dbdesc_bits, OSPF6_DBDESC_MBIT); SET_FLAG (on->dbdesc_bits, OSPF6_DBDESC_IBIT); THREAD_OFF (on->thread_send_dbdesc); on->thread_send_dbdesc = thread_add_event (master, ospf6_dbdesc_send, on, 0); return 0;}
开发者ID:thehajime,项目名称:zebra-manemo,代码行数:33,
示例3: bad_lsreqintbad_lsreq (struct thread *thread){ struct ospf6_neighbor *on; struct ospf6_lsa *lsa; on = (struct ospf6_neighbor *) THREAD_ARG (thread); assert (on); if (on->state < OSPF6_NEIGHBOR_EXCHANGE) return 0; if (IS_OSPF6_DEBUG_NEIGHBOR (EVENT)) zlog_info ("Neighbor Event %s: *BadLSReq*", on->name); ospf6_neighbor_state_change (OSPF6_NEIGHBOR_EXSTART, on); SET_FLAG (on->dbdesc_bits, OSPF6_DBDESC_MSBIT); SET_FLAG (on->dbdesc_bits, OSPF6_DBDESC_MBIT); SET_FLAG (on->dbdesc_bits, OSPF6_DBDESC_IBIT); ospf6_lsdb_remove_all (on->summary_list); ospf6_lsdb_remove_all (on->request_list); for (lsa = ospf6_lsdb_head (on->retrans_list); lsa; lsa = ospf6_lsdb_next (lsa)) { ospf6_decrement_retrans_count (lsa); ospf6_lsdb_remove (lsa, on->retrans_list); } THREAD_OFF (on->thread_send_dbdesc); on->thread_send_dbdesc = thread_add_event (master, ospf6_dbdesc_send, on, 0); return 0;}
开发者ID:thehajime,项目名称:zebra-manemo,代码行数:35,
示例4: DrawBoxvoid DrawBox(WINDOW* win, int height, int width, int starty, int startx, bool isFirst, bool isLast){ mvwhline(win, starty, startx + 1, ACS_HLINE, width ); mvwhline(win, starty + height - 1, startx + 1, ACS_HLINE, width ); mvwvline(win, starty + 1, startx, ACS_VLINE, height - 2 ); //mvwvline(win, starty + 1 , width + startx, ACS_VLINE, height - 2 ); zlog_info(c, "Drawing box (h=%3d, w=%3d, starty=%3d, startx=%3d, f=%d, l=%d", height, width, starty, startx, isFirst, isLast); wmove(win, starty + 1, startx + 2); wprintw(win, "%d,%d,%d", startx, starty, (starty % 3)); if (isFirst) { wmove(win, starty, startx); waddch(win, ACS_ULCORNER); wmove(win, starty + height - 1, startx); waddch(win, ACS_LLCORNER); } if (!isLast) { wmove(win, starty, startx + width); waddch(win, ACS_TTEE); wmove(win, starty + height - 1, startx + width); waddch(win, ACS_BTEE); }else{ wmove(win, starty, startx + width); waddch(win, ACS_URCORNER); wmove(win, starty + height - 1, startx + width); waddch(win, ACS_LRCORNER); mvwvline(win, starty + 1, width + startx, ACS_VLINE, height - 2 ); }}
开发者ID:phatmanace,项目名称:kingsbridge,代码行数:33,
示例5: ripng_interface_deleteintripng_interface_delete (int command, struct zclient *zclient, zebra_size_t length){ struct interface *ifp; struct stream *s; s = zclient->ibuf; /* zebra_interface_state_read() updates interface structure in iflist */ ifp = zebra_interface_state_read(s); if (ifp == NULL) return 0; if (if_is_up (ifp)) { ripng_if_down(ifp); } zlog_info("interface delete %s index %d flags %#llx metric %d mtu %d", ifp->name, ifp->ifindex, (unsigned long long) ifp->flags, ifp->metric, ifp->mtu6); /* To support pseudo interface do not free interface structure. */ /* if_delete(ifp); */ ifp->ifindex = IFINDEX_INTERNAL; return 0;}
开发者ID:DorChen,项目名称:quagga,代码行数:28,
示例6: pim_zebra_if_state_upstatic int pim_zebra_if_state_up(int command, struct zclient *zclient, zebra_size_t length){ struct interface *ifp; /* zebra api notifies interface up/down events by using the same call zebra_interface_state_read below, see comments in lib/zclient.c */ ifp = zebra_interface_state_read(zclient->ibuf); if (!ifp) return 0; zlog_info("INTERFACE UP: %s ifindex=%d", ifp->name, ifp->ifindex); if (PIM_DEBUG_ZEBRA) { zlog_debug("%s: %s index %d flags %ld metric %d mtu %d operative %d", __PRETTY_FUNCTION__, ifp->name, ifp->ifindex, (long)ifp->flags, ifp->metric, ifp->mtu, if_is_operative(ifp)); } if (if_is_operative(ifp)) { /* pim_if_addr_add_all() suffices for bringing up both IGMP and PIM */ pim_if_addr_add_all(ifp); } return 0;}
开发者ID:gvsurenderreddy,项目名称:quagga,代码行数:31,
示例7: ospf_nbr_delete/* Delete specified OSPF neighbor from interface. */void ospf_nbr_delete(struct ospf_neighbor *nbr){ struct ospf_interface *oi; struct route_node *rn; struct prefix p; oi = nbr->oi; /* get appropriate prefix 'key' */ ospf_nbr_key(oi, nbr, &p); rn = route_node_lookup(oi->nbrs, &p); if (rn) { /* If lookup for a NBR succeeds, the leaf route_node could * only exist because there is (or was) a nbr there. * If the nbr was deleted, the leaf route_node should have * lost its last refcount too, and be deleted. * Therefore a looked-up leaf route_node in nbrs table * should never have NULL info. */ assert(rn->info); if (rn->info) { rn->info = NULL; route_unlock_node(rn); } else zlog_info("Can't find neighbor %s in the interface %s", inet_ntoa(nbr->src), IF_NAME(oi)); route_unlock_node(rn); } /* Free ospf_neighbor structure. */ ospf_nbr_free(nbr);}
开发者ID:yubo,项目名称:quagga,代码行数:36,
示例8: ospf6_damp_debug_threadintospf6_damp_debug_thread (struct thread *thread){ int i; struct ospf6_damp_info *di; char buf[256]; time_t t_now; struct timeval now; for (i = 0; i < dc->reuse_list_size; i++) { for (di = dc->reuse_list_array[i]; di; di = di->next) { t_now = time (NULL); gettimeofday (&now, NULL); prefix2str (&di->name, buf, sizeof (buf)); zlog_info ("DAMP: %lu.%06lu %c %-32s penalty %7u", now.tv_sec, now.tv_usec, (di->damping == ON ? 'D' : 'A'), buf, (u_int) (di->penalty * ospf6_damp_decay (t_now - di->t_updated))); } } thread_add_timer (master, ospf6_damp_debug_thread, NULL, 1); return 0;}
开发者ID:BackupTheBerlios,项目名称:tew632-brp-svn,代码行数:26,
示例9: ospf6_damp_createstatic struct ospf6_damp_info *ospf6_damp_create (u_short type, struct prefix *name){ struct route_node *node; struct ospf6_damp_info *di; char namebuf[64]; di = ospf6_damp_lookup (type, name); if (di) return di; if (IS_OSPF6_DEBUG_DAMP) { prefix2str (name, namebuf, sizeof (namebuf)); zlog_info ("DAMP: create: type: %d, name: %s", type, namebuf); } di = (struct ospf6_damp_info *) malloc (sizeof (struct ospf6_damp_info)); memset (di, 0, sizeof (struct ospf6_damp_info)); di->type = type; prefix_copy (&di->name, name); node = route_node_get (damp_info_table[type], name); node->info = di; return di;}
开发者ID:BackupTheBerlios,项目名称:tew632-brp-svn,代码行数:28,
示例10: ospf6_damp_stop/* When we quit damping for a target, we should execute proper event which have been postponed during damping */static voidospf6_damp_stop (struct ospf6_damp_info *di){ time_t t_now; char namebuf[64]; struct timeval now; if (IS_OSPF6_DEBUG_DAMP) { t_now = time (NULL); prefix2str (&di->name, namebuf, sizeof (namebuf)); gettimeofday (&now, NULL); zlog_info ("DAMP: %lu.%06lu stop damping: %ld: type: %d, name: %s", now.tv_sec, now.tv_usec, t_now, di->type, namebuf); } /* set flag indicates that we're damping this target */ di->damping = OFF; /* if the target's current status differ from that it should be, execute the proper event to repair his status */ if (di->target_status != di->event_type) { (*(di->event)) (di->target); di->target_status = di->event_type; di->event = NULL; di->event_type = event_none; }}
开发者ID:BackupTheBerlios,项目名称:tew632-brp-svn,代码行数:33,
示例11: bfd_ioctl_state_changestatic intbfd_ioctl_state_change (struct bfd_nl_peerinfo *peerinfo){ struct bfd_peer peer; struct zserv *client; struct listnode *node; if (IS_ZEBRA_DEBUG_KERNEL) zlog_info ("rcvd peerinfo %s: state=%d, ifindex=%d", sockunion_log ((union sockunion *) &peerinfo->dst), peerinfo->state, peerinfo->ifindex); memcpy (&peer.su, &peerinfo->dst.sa, sizeof (union sockunion)); peer.ifindex = peerinfo->ifindex; if (peerinfo->state == BSM_Up) { for (node = listhead (client_list); node; nextnode (node)) if ((client = getdata (node)) != NULL) zsend_bfd_peer_up (client, &peer); } else if (peerinfo->state == BSM_Down) { for (node = listhead (client_list); node; nextnode (node)) if ((client = getdata (node)) != NULL) zsend_bfd_peer_down (client, &peer); } else { } return 0;}
开发者ID:thehajime,项目名称:zebra-manemo,代码行数:34,
示例12: mainint main(int argc, char** argv){ int rc; zlog_category_t *zc; rc = zlog_init("test_level.conf"); if (rc) { printf("init failed/n"); return -1; } zc = zlog_get_category("my_cat"); if (!zc) { printf("get cat fail/n"); zlog_fini(); return -2; } zlog_trace(zc, "hello, zlog - trace"); zlog_debug(zc, "hello, zlog - debug"); zlog_info(zc, "hello, zlog - info"); zlog_fini(); return 0;}
开发者ID:3van,项目名称:zlog,代码行数:26,
示例13: mainint main(int argc, char** argv){ int rc = 0; zlog_category_t *zc = NULL; // 初始化库, 给出配置文件路径 rc = zlog_init("test_hello.conf"); if (rc) { printf("init failed/n"); return -1; } // 获取分类名, 表示要打印哪些日志 zc = zlog_get_category("my_cat"); if (!zc) { printf("get cat fail/n"); zlog_fini(); return -2; } zlog_info(zc, "hello, zlog"); zlog_fini(); return 0;}
开发者ID:Akagi201,项目名称:zlog,代码行数:26,
示例14: zlog_testint zlog_test(){ int rc; zlog_category_t *c; rc = zlog_init("d://tmp//zlog.conf"); if (rc) { printf("init failed/n"); return -1; } c = zlog_get_category("my_cat"); if (!c) { printf("get cat fail/n"); zlog_fini(); return -2; } zlog_info(c, "hello, zlog"); zlog_debug(c, "hello, zlog"); zlog_error(c, "hello, zlog"); zlog_fini(); printf("exit./n"); return 0;}
开发者ID:JoKaWare,项目名称:WinZlog,代码行数:29,
示例15: smux_parse_getvoidsmux_parse_get (char *ptr, size_t len, int exact){ long reqid; oid oid[MAX_OID_LEN]; size_t oid_len; u_char val_type; void *val; size_t val_len; int ret; if (debug_smux) zlog_info ("SMUX GET message parse: len %d", len); /* Parse GET message header. */ ptr = smux_parse_get_header (ptr, &len, &reqid); /* Parse GET message object ID. We needn't the value come */ ptr = smux_var (ptr, len, oid, &oid_len, NULL, NULL, NULL); /* Traditional getstatptr. */ if (exact) ret = smux_get (oid, &oid_len, exact, &val_type, &val, &val_len); else ret = smux_getnext (oid, &oid_len, exact, &val_type, &val, &val_len); /* Return result. */ if (ret == 0) smux_getresp_send (oid, oid_len, reqid, 0, 0, val_type, val, val_len); else smux_getresp_send (oid, oid_len, reqid, ret, 3, ASN_NULL, NULL, 0);}
开发者ID:BackupTheBerlios,项目名称:tew632-brp-svn,代码行数:32,
示例16: if_get_mtu/* get interface MTU */voidif_get_mtu (struct interface *ifp){ struct ifreq ifreq; ifreq_set_name (&ifreq, ifp);#if defined(SIOCGIFMTU) if (if_ioctl (SIOCGIFMTU, (caddr_t) & ifreq) < 0) { zlog_info ("Can't lookup mtu by ioctl(SIOCGIFMTU)"); ifp->mtu = -1; return; }#ifdef SUNOS_5 ifp->mtu = ifreq.ifr_metric;#else ifp->mtu = ifreq.ifr_mtu;#endif /* SUNOS_5 */#else zlog (NULL, LOG_INFO, "Can't lookup mtu on this system"); ifp->mtu = -1;#endif}
开发者ID:thehajime,项目名称:zebra-manemo,代码行数:27,
示例17: if_set_flags/* Set interface flags */intif_set_flags (struct interface_FOO *ifp, uint64_t flags){ int ret; struct lifreq lifreq; lifreq_set_name (&lifreq, ifp->name); lifreq.lifr_flags = ifp->flags; lifreq.lifr_flags |= flags; if (ifp->flags & IFF_IPV4) ret = AF_IOCTL (AF_INET, SIOCSLIFFLAGS, (caddr_t) & lifreq); else if (ifp->flags & IFF_IPV6) ret = AF_IOCTL (AF_INET6, SIOCSLIFFLAGS, (caddr_t) & lifreq); else ret = -1; if (ret < 0) zlog_info ("can't set interface flags on %s: %s", ifp->name, safe_strerror (errno)); else ret = 0; return ret;}
开发者ID:inet-framework,项目名称:inet-quagga,代码行数:27,
示例18: pim_ssmpingd_startint pim_ssmpingd_start(struct in_addr source_addr){ struct ssmpingd_sock *ss; ss = ssmpingd_find(source_addr); if (ss) { /* silently ignore request to recreate entry */ return 0; } { char source_str[100]; pim_inet4_dump("<src?>", source_addr, source_str, sizeof(source_str)); zlog_info("%s: starting ssmpingd for source %s", __PRETTY_FUNCTION__, source_str); } ss = ssmpingd_new(source_addr); if (!ss) { char source_str[100]; pim_inet4_dump("<src?>", source_addr, source_str, sizeof(source_str)); zlog_warn("%s: ssmpingd_new() failure for source %s", __PRETTY_FUNCTION__, source_str); return -1; } return 0;}
开发者ID:gvsurenderreddy,项目名称:quagga,代码行数:28,
示例19: mainint main(int argc, char** argv){ int rc = 0; int j = 100; rc = zlog_init("change_rule.conf"); if (rc){ printf("init failed/n"); return 2; } zlog_category_t *zc; zc = zlog_get_category("yang"); pthread_t tid; pthread_create(&tid, NULL, work, (void*)("yang")); while(j-- > 0) { zlog_debug(zc, "debuglog"); zlog_info(zc, "infolog"); zlog_error(zc, "errorlog"); sleep(1); } pthread_join(tid, NULL); zlog_fini(); return 0;}
开发者ID:yang5022,项目名称:Temp,代码行数:29,
示例20: delete_rpa_interfaceint delete_rpa_interface(struct interface * ifp){ int fd, ret; struct rpa_interface_info rpa_info; zlog_info(" Go to detele rpa interface %s ./n",ifp->name); ifp->slot = get_slot_num(ifp->name); rpa_info.slotNum = ifp->slot - 1; rpa_info.netdevNum = ifp->devnum; fd = open(DEV_NAME, O_RDWR); if(fd < 0) { zlog_warn("ioctl open error : %s ./n",safe_strerror(errno)); return -1; } ret = ioctl(fd, RPA_IOC_UNREG_IF, &rpa_info); if(ret < 0) { zlog_warn("ioctl error : %s ./n",safe_strerror(errno)); close(fd); return -1; } close(fd); return 0;}
开发者ID:kkcloudy,项目名称:daemongroup,代码行数:28,
示例21: if_unset_flags/* Unset interface's flag. */intif_unset_flags (struct interface *ifp, uint64_t flags){ int ret; struct lifreq lifreq; lifreq_set_name (&lifreq, ifp->name); lifreq.lifr_flags = ifp->flags; lifreq.lifr_flags &= ~flags; if (ifp->flags & IFF_IPV4) ret = AF_IOCTL (AF_INET, SIOCSLIFFLAGS, (caddr_t) & lifreq); else if (ifp->flags & IFF_IPV6) ret = AF_IOCTL (AF_INET6, SIOCSLIFFLAGS, (caddr_t) & lifreq); else ret = -1; if (ret < 0) zlog_info ("can't unset interface flags"); else ret = 0; return ret;}
开发者ID:Addision,项目名称:LVS,代码行数:26,
示例22: snmp_oid_dump/* Snmp OID Dump */voidsnmp_oid_dump (struct lib_globals *zg, char *prefix, oid *oid, size_t oid_len){ s_int32_t i; s_int32_t first = 1; int j; char buf[MAX_OID_LEN * 3]; int offset = 0; buf[0] = '/0'; j = MAX_OID_LEN * 3; for (i = 0; i < oid_len; i++) { pal_snprintf (buf + offset, j - offset, "%s%2d", first ? "" : ".", (s_int32_t) oid[i]); if (first) offset += 2; else offset += 3; first = 0; } buf[offset] = '/0'; zlog_info (zg, "%s: %s", prefix, buf);}
开发者ID:IPInfusion,项目名称:SDN-IP,代码行数:27,
示例23: ospf6_asbr_lsentry_addvoidospf6_asbr_lsentry_add (struct ospf6_route *asbr_entry){ struct ospf6_lsa *lsa; u_int16_t type; u_int32_t router; if (! CHECK_FLAG (asbr_entry->flag, OSPF6_ROUTE_BEST)) { char buf[16]; inet_ntop (AF_INET, &ADV_ROUTER_IN_PREFIX (&asbr_entry->prefix), buf, sizeof (buf)); zlog_info ("ignore non-best path: lsentry %s add", buf); return; } type = htons (OSPF6_LSTYPE_AS_EXTERNAL); router = ospf6_linkstate_prefix_adv_router (&asbr_entry->prefix); for (lsa = ospf6_lsdb_type_router_head (type, router, ospf6->lsdb); lsa; lsa = ospf6_lsdb_type_router_next (type, router, lsa)) { if (! OSPF6_LSA_IS_MAXAGE (lsa)) ospf6_asbr_lsa_add (lsa); }}
开发者ID:edderick,项目名称:quagga_zOSPF,代码行数:25,
示例24: timer_cbint timer_cb(ZTIMER * zt, void *ctx){ zlog_info("now exit!"); exit(1); return 0;}
开发者ID:mailhonor,项目名称:libzc,代码行数:7,
示例25: exchange_doneintexchange_done (struct thread *thread){ struct ospf6_neighbor *on; on = (struct ospf6_neighbor *) THREAD_ARG (thread); assert (on); if (on->state != OSPF6_NEIGHBOR_EXCHANGE) return 0; if (IS_OSPF6_DEBUG_NEIGHBOR (EVENT)) zlog_info ("Neighbor Event %s: *ExchangeDone*", on->name); THREAD_OFF (on->thread_send_dbdesc); ospf6_lsdb_remove_all (on->dbdesc_list);/* XXX thread_add_timer (master, ospf6_neighbor_last_dbdesc_release, on, on->ospf6_if->dead_interval);*/ if (on->request_list->count == 0) ospf6_neighbor_state_change (OSPF6_NEIGHBOR_FULL, on); else ospf6_neighbor_state_change (OSPF6_NEIGHBOR_LOADING, on); return 0;}
开发者ID:thehajime,项目名称:zebra-manemo,代码行数:29,
示例26: dfv_repo_get_diskfreessize_t dfv_repo_get_diskfree(struct dfv_repo* repo){ ssize_t df = -1; assert(repo); struct statfs sfs;#if 1 int i; char pathname[SPK_MAX_PATHNAME]; df =0; char mnt_path[SPK_MAX_PATHNAME]; strcpy(mnt_path, repo->mnt_path); for(i=0; i<repo->dev_num; i++) { sprintf(pathname, "/%s/%s/%s", DFV_PREFIX_PATH, mnt_path, DFV_POSTFIX_PATH); if(!statfs(pathname, &sfs)) { df += sfs.f_bavail*sfs.f_bsize; } mnt_path[2]++; }#else if(!statfs(repo->root_path, &sfs)) { df = sfs.f_bavail*sfs.f_bsize; }#endif zlog_info(dfv_zc, "get repo diskfree: path=%s, df=%ld", repo->root_path, df); return (df);}
开发者ID:Cai900205,项目名称:test,代码行数:31,
示例27: oneway_receivedintoneway_received (struct thread *thread){ struct ospf6_neighbor *on; struct ospf6_lsa *lsa; on = (struct ospf6_neighbor *) THREAD_ARG (thread); assert (on); if (on->state < OSPF6_NEIGHBOR_TWOWAY) return 0; if (IS_OSPF6_DEBUG_NEIGHBOR (EVENT)) zlog_info ("Neighbor Event %s: *1Way-Received*", on->name); ospf6_neighbor_state_change (OSPF6_NEIGHBOR_INIT, on); thread_add_event (master, neighbor_change, on->ospf6_if, 0); ospf6_lsdb_remove_all (on->summary_list); ospf6_lsdb_remove_all (on->request_list); for (lsa = ospf6_lsdb_head (on->retrans_list); lsa; lsa = ospf6_lsdb_next (lsa)) { ospf6_decrement_retrans_count (lsa); ospf6_lsdb_remove (lsa, on->retrans_list); } THREAD_OFF (on->thread_send_dbdesc); THREAD_OFF (on->thread_send_lsreq); THREAD_OFF (on->thread_send_lsupdate); THREAD_OFF (on->thread_send_lsack); return 0;}
开发者ID:thehajime,项目名称:zebra-manemo,代码行数:34,
示例28: http_engine_stopvoidhttp_engine_stop(){ int i; if (!g_http_engine) { return; } zlog_info(log_get_cat_http(), "Stopping HTTP engine"); /* Stop all the workers */ pthread_mutex_lock(&g_http_engine->lock); if (g_http_engine->workers_running) { for (i = 0; i < g_http_engine->total_workers; i++) { if(g_http_engine->workers[i].worker && g_http_engine->workers[i].user_event) { event_active(g_http_engine->workers[i].user_event, EV_READ|EV_WRITE, 1); } } } pthread_mutex_unlock(&g_http_engine->lock); /* Wait here for the threads to stop */ http_engine_wait_for_completion(); /* Save the test results */ http_engine_save_test_results();}
开发者ID:niks3089,项目名称:nixia,代码行数:32,
注:本文中的zlog_info函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 C++ zlog_warn函数代码示例 C++ zlog_err函数代码示例 |