Meng Rao

Results 26 comments of Meng Rao

Actually there's a little bug in benchfindint.cc where I recently changed IntT type but forgot to change IntLen accordingly. I have fixed it and submitted, now bench_hash should be the...

不一定要占满cpu忙等,可以做其他事或yield让出cpu

fmtlog use SPSC(single producer and single consumer) queue for logging, so the communication is between 2 parities, which makes threading safe easier.

Currently it's not supported. But you can register log handler callback to handle it yourself.

The registered callback is indeed called in background thread. You can refer to `logcb` in https://github.com/MengRao/fmtlog/blob/main/test/log_test.cc, which simply prints the log msg to stdout.

FMT_NOEXCEPT issue has been fixed.

The log queue can hold 1M bytes data for each thread before poll() is called, in your case each logi(...) pushs 20 bytes data to the queue and it starts...

Now log queue full callback is supported: you can be notified when the log queue is full.

能给出编译错误代码行号吗?