ATLAS Offline Software
Loading...
Searching...
No Matches
IdentifiedSharedQueue.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef ATHENAINTERPROCESS_IDENTIFIEDSHAREDQUEUE_H
6#define ATHENAINTERPROCESS_IDENTIFIEDSHAREDQUEUE_H
7
9
10#include <unistd.h>
11
12namespace AthenaInterprocess {
13
15public:
16
17public:
19 IdentifiedSharedQueue( const std::string& name,
20 int max_msg = SHAREDQUEUE_MAX_MSG,
21 std::size_t max_size = MAX_MSG_SIZE,
22 bool do_unlink = true );
23
24public:
25 virtual bool try_send( const std::string& ); // non-blocking
26 virtual bool send( const std::string& );
27
28 virtual std::string try_receive(); // non-blocking
29 virtual std::string try_receive( pid_t& id ); // id.
30 virtual std::string receive();
31 virtual std::string receive( pid_t& id );
32};
33
34} // namespace AthenaInterprocess
35
36#endif // !ATHENAINTERPROCESS_IDENTIFIEDSHAREDQUEUE_H
int32_t pid_t
virtual bool try_send(const std::string &)
static const std::size_t MAX_MSG_SIZE
Definition SharedQueue.h:19
static const int SHAREDQUEUE_MAX_MSG
Definition SharedQueue.h:18