#include <boost/interprocess/managed_shared_memory.hpp>
#include <boost/interprocess/sync/interprocess_mutex.hpp>
#include <boost/interprocess/sync/interprocess_condition.hpp>
#include <boost/interprocess/sync/scoped_lock.hpp>
#include <iostream>
#include <unistd.h>
#include <semaphore.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <stdint.h>
#include <time.h>
#include <sched.h>
struct timespec hipretime;
struct processMsg {
uint64_t timenow;
uint32_t frameId;
processMsg()
{
timenow = 0;
frameId = 0;
}
};
/*************************************
Function:
Author :
Date : 2019/10/26
*************************************/
int main()
{
try {
std::cout<<"Pub begin....."<<std::endl;
boost::interprocess::managed_shared_memory managed_shm(boost::in
进程之间条件变量的同步
最新推荐文章于 2023-12-05 16:18:56 发布