Linux平台基于消息队列的C++简易封装
#pragma once
#include <cstdio>
#include <cstdlib>
#include <sys/msg.h>
#include <cstring>
#include <atomic>
typedef void (*mq_recv_call_handler)(int recv_len,char *recv_buf);
struct msg_st
{
long int msg_type;//作为一个标志,非
原创
2022-03-11 10:18:25 ·
1484 阅读 ·
0 评论