| 45 | } |
| 46 | |
| 47 | bool http_test(const char* url) |
| 48 | { |
| 49 | static bool __inited = false; |
| 50 | if (!__inited) { |
| 51 | acl::acl_cpp_init(); |
| 52 | __inited = true; |
| 53 | } |
| 54 | |
| 55 | acl::string* addr_buf = new acl::string("www.baidu.com:80"); |
| 56 | acl::string* url_buf = new acl::string("/"); |
| 57 | std::thread thread(fiber_thread, addr_buf, url_buf); |
| 58 | thread.detach(); |
| 59 | |
| 60 | return true; |
| 61 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…