| 25 | ////////////////////////////////////////////////////////////////////////// |
| 26 | |
| 27 | static 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 | |
| 52 | static bool create_fiber(file_tmpl& tmpl) |
| 53 | { |
no test coverage detected
searching dependent graphs…