00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
#if !defined(__EX21_HPP)
00022
#define __EX21_HPP
00023
00024
#if !defined(__COMMON_HPP)
00025
#include <corelinux/Common.hpp>
00026
#endif
00027
00028
#if !defined(__ABSTRACTSEMAPHORE_HPP)
00029
#include <corelinux/AbstractSemaphore.hpp>
00030
#endif
00031
00032
#if !defined(__MUTEXSEMAPHOREGROUP_HPP)
00033
#include <corelinux/MutexSemaphoreGroup.hpp>
00034
#endif
00035
00036
#if !defined(__MEMORY_HPP)
00037
#include <corelinux/Memory.hpp>
00038
#endif
00039
00040
using namespace corelinux;
00041
00042
00043
00044
00045
00046
struct _TransferBlock
00047 {
00048 Int theTotalSize;
00049 Int theEntrySize;
00050 Char theData[1];
00051 };
00052
00053 DECLARE_TYPE(
struct _TransferBlock, TransferBlock );
00054
00055
00056
00057
00058
00059
const CharCptr theSemName = {
"ex21sem"};
00060
const CharCptr theMemName = {
"ex21mem"};
00061
00062
static SemaphoreIdentifier theServerSemId(0);
00063
static SemaphoreIdentifier theClientSemId(1);
00064
00065
00066
#endif
00067
00068
00069
00070
00071
00072
00073
00074
00075