binary_log icon indicating copy to clipboard operation
binary_log copied to clipboard

is there any examples for multi threads mode?

Open shfxxer opened this issue 10 months ago • 0 comments

in function log(std::size_t pos, Args&&... args)

it will execute multiple times buffer_or_write(&index, sizeof(uint8_t)); so it seems lockfree queue will not work for buffer write interfaces.

but how to use lockfree safely?

assume thread 1 log ("thread 1 info {}",1),thread 2 log ("thread 2 info {}, {}",2,3)

how to pack this into log interface with lock-free? a huge tuple?

shfxxer avatar Jan 03 '25 09:01 shfxxer