| Line |
Branch |
Exec |
Source |
| 1 |
|
|
#include <signal.h> |
| 2 |
|
|
#include <stdlib.h> |
| 3 |
|
|
#include <time.h> |
| 4 |
|
|
#include <unistd.h> |
| 5 |
|
|
#include <iostream> |
| 6 |
|
|
#include "shared_memory/demos/four_int_values.hpp" |
| 7 |
|
|
#include "shared_memory/exchange_manager_producer.hpp" |
| 8 |
|
|
|
| 9 |
|
|
#define SEGMENT_ID "exchange_demo_segment" |
| 10 |
|
|
#define QUEUE_SIZE 2000 |
| 11 |
|
|
|
| 12 |
|
✗ |
int main() |
| 13 |
|
|
{ |
| 14 |
|
|
shared_memory::Exchange_manager_producer< |
| 15 |
|
|
shared_memory::Four_int_values, |
| 16 |
|
✗ |
QUEUE_SIZE>::clean_mutex(std::string(SEGMENT_ID)); |
| 17 |
|
|
shared_memory::Exchange_manager_producer< |
| 18 |
|
|
shared_memory::Four_int_values, |
| 19 |
|
✗ |
QUEUE_SIZE>::clean_memory(std::string(SEGMENT_ID)); |
| 20 |
|
|
} |
| 21 |
|
|
|