Toggle navigation
Beam GIT List
GitHub
Repo
Changelog
To do
Releases
Themes
Change log
Loading change log ...
To do ...
Loading todo ...
browsing:
57456599f456e1c1d9f0b6156378ea5e62fd3d0e
Branches
master
Tags
tms/release-pre-2.1.0
tms/release-2.2.1
tms/release-2.2.0
tms/release-2.1.0
tms/release-2.0.6
tms/release-2.0.5
tms/release-2.0.4
tms/release-2.0.3first
tms/release-2.0.3
tms/release-1.2.12
tms/release-1.2.11
tms/release-1.2.10
tms/release-1.2.9
tms/release-1.2.8
tms/release-1.2.6a
tms/release-1.2.6
tms/release-1.2.4
tms/release-1.2.3
tms/release-1.2.2
tms/release-1.2.0
tms/release-1.1.2
tms/release-1.1.1
tms/release-1.0.2
tms/release-1.0.1
tms/release-1.0.0
tms/release-0.4.3
tms/release-0.4.2
tms/release-0.4.1
tms/release-0.3.14
tms/release-0.3.13
tms/release-0.3.12
tms/release-0.3.10
tms/release-0.3.9
tms/release-0.3.8
tms/release-0.3.5
tms/release-0.3.4
tms/release-0.3.3
tms/release-0.2.7
tms/release-0.2.5
tms/release-0.2.3
tms-mcsys/release-2.1.0-1.beam
tms-mcsys/release-2.0.6-1.beam
tms-mcsys/release-1.2.9-1.beam
tms-fpga/release-1.2.5
tms-fpga/release-1.2.4
Files
Commits
Log
Graph
Stats
tms-old
beam
libBeam
BEvent.h
RSS
Git
Fetch origin
Download
ZIP
TAR
Clone
Raw
View
History
Clone
HTTPS
Blames found: 23
Mode: text/x-c++src
Binary: false
Hang on, we reloading big blames...
6ae0d525
/*******************************************************************************
57456599
* BEvent.h Event class * T.Barnaby, BEAM Ltd, 2005-07-08 * Copyright (c) 2005 All Right Reserved, Beam Ltd, http://www.beam.ltd.uk
6ae0d525
******************************************************************************* */ #ifndef BEvent_H #define BEvent_H 1
57456599
#include <BTypes.h> #include <BQueue.h>
6ae0d525
57456599
enum BEventType { BEventTypeNone = 0 };
6ae0d525
class BEvent { public:
57456599
BEvent(BUInt32 type = BEventTypeNone, BUInt32 arg = 0);
6ae0d525
57456599
BUInt32 type(); BUInt32 arg();
6ae0d525
private:
57456599
BUInt32 otype; ///< The events type BUInt32 oarg; ///< The events argument
6ae0d525
};
57456599
/// \brief This class provides an interface for sending simple integer events via a BQueue. typedef BQueue<BEvent> BEventQueue;
6ae0d525
57456599
/// \brief This class provides an interface for sending simple integer events via a pipe file descriptor
6ae0d525
class BEventPipe { public: BEventPipe(); ~BEventPipe();
57456599
void clear(); ///< Clear events pending int getFd();
6ae0d525
57456599
BUInt writeAvailable() const; BError write(const BEvent& event, BTimeout timeout = BTimeoutForever); ///< Append an item onto the queue
6ae0d525
57456599
BUInt readAvailable() const; BError read(BEvent& event, BTimeout timeout = BTimeoutForever); ///< Get an item from the queue
6ae0d525
private: int ofds[2]; ///< File descriptors for pipe }; #endif