Skip to content

is there any examples for multi threads mode? #10

@shfxxer

Description

@shfxxer

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions