MCPcopy Create free account
hub / github.com/acl-dev/acl / main

Function main

lib_acl_cpp/samples/class_counter/main.cpp:102–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100}
101
102int main(int argc, char *argv[]) {
103 // ��ʼ�� acl ��
104 acl::acl_cpp_init();
105 acl::log::stdout_open(true);
106
107 size_t max = 1000000;
108 if (argc > 1) {
109 max = atol(argv[1]);
110 }
111
112 if (max == 0 || max > 10000000) {
113 max = 1000000;
114 }
115
116 printf("use_typeid: yes, use_lock: yes\r\n");
117 test(max, true);
118 printf("----------------------------------------------------\r\n\r\n");
119
120 printf("use_typeid: no, use_lock: yes\r\n");
121 test(max, false);
122 printf("----------------------------------------------------\r\n\r\n");
123
124 ACL_COUNTER_INIT(false);
125
126 printf("use_typeid: yes, use_lock: yes\r\n");
127 test(max, true);
128 printf("----------------------------------------------------\r\n\r\n");
129
130 printf("use_typeid: no, use_lock: no\r\n");
131 test(max, false);
132
133 return 0;
134}

Callers

nothing calls this directly

Calls 2

acl_cpp_initFunction · 0.85
testFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…