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

Function http_test

xcode/fiber_http/fiber_http/HttpTest.cpp:47–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47bool 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}

Callers

nothing calls this directly

Calls 2

acl_cpp_initFunction · 0.85
detachMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…