Skip to content

Commit 564f511

Browse files
authored
Merge pull request #49 from mutouyun/issue-45
Issue 45
2 parents 130e4d6 + 1bb96fe commit 564f511

File tree

14 files changed

+338
-218
lines changed

14 files changed

+338
-218
lines changed

demo/msg_que/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ constexpr std::size_t const max_sz = 1024 * 16;
2323
std::atomic<bool> is_quit__{ false };
2424
std::atomic<std::size_t> size_counter__{ 0 };
2525

26-
using msg_que_t = ipc::chan<ipc::relat::single, ipc::relat::single, ipc::trans::unicast>;
26+
using msg_que_t = ipc::chan<ipc::relat::single, ipc::relat::multi, ipc::trans::broadcast>;
2727

2828
msg_que_t que__{ name__ };
2929
ipc::byte_t buff__[max_sz];

include/libipc/def.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ enum : std::size_t {
2929
invalid_value = (std::numeric_limits<std::size_t>::max)(),
3030
data_length = 64,
3131
large_msg_limit = data_length,
32-
large_msg_align = 512,
32+
large_msg_align = 1024,
3333
large_msg_cache = 32,
3434
default_timeout = 100 // ms
3535
};

0 commit comments

Comments
 (0)