From 5bb28835d06e27dbd960916c9fb11a555fc5a9bc Mon Sep 17 00:00:00 2001
From: lichao <lichao@aiotlink.com>
Date: 星期一, 26 四月 2021 14:24:29 +0800
Subject: [PATCH] add shared lib target.

---
 utest/utest.cpp |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/utest/utest.cpp b/utest/utest.cpp
index ff5d2ed..d058471 100644
--- a/utest/utest.cpp
+++ b/utest/utest.cpp
@@ -2,8 +2,6 @@
 #include "defs.h"
 #include "util.h"
 #include <atomic>
-#include <boost/uuid/uuid_generators.hpp>
-#include <boost/uuid/uuid_io.hpp>
 #include <condition_variable>
 #include <stdio.h>
 #include <string>
@@ -96,7 +94,7 @@
 
 	auto Avail = [&]() { return shm.get_free_memory(); };
 	auto init_avail = Avail();
-	int *flag = shm.find_or_construct<int>("flag")(123);
+	int *flag = shm.FindOrCreate<int>("flag", 123);
 	printf("flag = %d\n", *flag);
 	++*flag;
 	const std::string sub_proc_id = "subscriber";
@@ -207,7 +205,7 @@
 
 	auto Avail = [&]() { return shm.get_free_memory(); };
 	auto init_avail = Avail();
-	int *flag = shm.find_or_construct<int>("flag")(123);
+	int *flag = shm.FindOrCreate<int>("flag", 123);
 	printf("flag = %d\n", *flag);
 	++*flag;
 

--
Gitblit v1.8.0