clang-format
This commit is contained in:
@@ -9,9 +9,9 @@
|
||||
int
|
||||
main(int /* argc */, char** /* argv */)
|
||||
{
|
||||
using ipc::Ipc;
|
||||
using fmt::format;
|
||||
using fmt::print;
|
||||
using ipc::Ipc;
|
||||
using namespace std::chrono_literals;
|
||||
|
||||
int verbose = 0;
|
||||
@@ -34,7 +34,7 @@ main(int /* argc */, char** /* argv */)
|
||||
|
||||
int value;
|
||||
double result;
|
||||
while(1) {
|
||||
while (1) {
|
||||
{
|
||||
server.read(value);
|
||||
print("[server] read int({})\n", value);
|
||||
|
||||
@@ -13,7 +13,7 @@ main(int /* argc */, char** /* argv */)
|
||||
int verbose = 0;
|
||||
|
||||
printf("\n");
|
||||
ipc_init_default(); // default name
|
||||
ipc_init_default(); // default name
|
||||
|
||||
std::thread server_thread([verbose] {
|
||||
printf("[c-server] pre-start\n");
|
||||
@@ -24,7 +24,7 @@ main(int /* argc */, char** /* argv */)
|
||||
|
||||
int value;
|
||||
double result;
|
||||
while(1) {
|
||||
while (1) {
|
||||
{
|
||||
ipc_read_int(server, &value, 1);
|
||||
printf("[c-server] read int(%d)\n", value);
|
||||
|
||||
@@ -9,13 +9,13 @@
|
||||
int
|
||||
main(int /* argc */, char** /* argv */)
|
||||
{
|
||||
using ipc::Ipc;
|
||||
using fmt::format;
|
||||
using fmt::print;
|
||||
using ipc::Ipc;
|
||||
using namespace std::chrono_literals;
|
||||
|
||||
int verbose = 0;
|
||||
ipc::init(); // default name
|
||||
ipc::init(); // default name
|
||||
|
||||
ipc::start_external("python test_server.py", true);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user