Browse Source

222

master
panyufeng 3 years ago
parent
commit
2caba4b8ad
1 changed files with 9 additions and 1 deletions
  1. +9
    -1
      test_conf/test_conf.cpp

+ 9
- 1
test_conf/test_conf.cpp View File

@ -32,7 +32,9 @@ int main()
//设置特征
event_config_require_features(conf, EV_FEATURE_FDS);
@ -42,6 +44,12 @@ int main()
if (!base) {
cout << "event_base_new_with_config failed!" << endl;
base = event_base_new();
if (!base) {
cerr << "event_base_new failed" << endl;
return 0;
}
}
else {
//确认特征是否生效


Loading…
Cancel
Save