yangqun

Results 10 issues of yangqun

就是在class里面写一个死循环间隔几秒写一下日志,如果程序运行一段时间(几个小时)就会刷出很多的log,不是间隔几秒,而是不断的在写。 ![image](https://user-images.githubusercontent.com/5195784/152467375-6ff190f2-20ff-453e-924f-e38e66455074.png)

hello, I downloaded version 2.0.5 on my centos 7.6. and cmake -G “Unix Makefiles” make make install and I copied an fbs file // Example IDL file for our monster's...

==19167==Hint: this fault was caused by a dereference of a high value address (see register values below). Dissassemble the provided pc to learn which register was used. AddressSanitizer:DEADLYSIGNAL #0 0x7f8cda78bbe4...

之前用nanolog,现在发现fmtlog更友好,想从类似LOG_INFO("%s %f",string, double)这种老的代码切过来。

在这个 ipc::chan 模式下,发送一个大小为600字节的结构体的时候,发送方一秒一次,接收端收了几十个数据之后就卡住不动了,是不是哪里有问题呀?求指导。 还有就是这个发送接收的延迟要好几十us,怎么感觉和excel里面的性能测试不一样呢?

just include "concurrentqueue/concurrentqueue.h" when cmake program errors appears: /opt/vcpkg/installed/x64-linux/include/concurrentqueue/concurrentqueue.h: In static member function ‘static U* moodycamel::ConcurrentQueue::create_array(moodycamel::ConcurrentQueue::size_t)’: /opt/vcpkg/installed/x64-linux/include/concurrentqueue/concurrentqueue.h:3612:40: error: expected type-specifier before ‘;’ token 3612 | new (p + i) U();...

while(1){ websocket_incoming_message msg = env->client->receive().get(); .... co_cond_signal(env->cond); poll(NULL, 0, 0); } 请教下大神,这个阻塞导致程序一直在这里收数据,无法跳到另外的消费者协程那里去,应该怎么办呢?

rt,有同学能给点思路吗,谢谢了。

while(1){ FMTLOG(fmtlog::INF, "The answer is {}.", 42); fmtlog::setHeaderPattern("[{HMSF}][{s}][{l}][{t}]:"); fmtlog::setLogFile(logName); fmtlog::setLogLevel(levelEnum); fmtlog::poll(); sleep(10) }