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

Function create_threads

app/wizard/http_creator.cpp:27–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25//////////////////////////////////////////////////////////////////////////
26
27static bool create_threads(file_tmpl& tmpl)
28{
29 string file(tmpl.get_project_name());
30 file << ".cf";
31 if (tmpl.copy_and_replace("master_threads.cf", file.c_str()) == false) {
32 return false;
33 }
34
35 const char* name = "master_threads";
36 const FILE_FROM_TO tab[] = {
37 { "main_threads.cpp", "main.cpp" },
38 { "master_threads.h", "master_service.h" },
39 { "master_threads.cpp", "master_service.cpp" },
40 { "http_service.h", "http_service.h" },
41 { "http_service.cpp", "http_service.cpp" },
42 { "http_servlet.h", "http_servlet.h" },
43 { "websocket.cpp", "websocket.cpp" },
44 { "websocket.h", "websocket.h" },
45
46 { NULL, NULL }
47 };
48
49 return tmpl.files_copy(name, tab);
50}
51
52static bool create_fiber(file_tmpl& tmpl)
53{

Callers 1

create_serviceFunction · 0.85

Calls 4

get_project_nameMethod · 0.80
copy_and_replaceMethod · 0.80
files_copyMethod · 0.80
c_strMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…