mirror of
https://github.com/wjwwood/serial.git
synced 2026-01-22 11:44:53 +08:00
Merge branch 'boostless' into stringbuffer
This commit is contained in:
commit
dc556c9f25
@ -159,6 +159,12 @@ public:
|
||||
|
||||
ComparatorType comparator_;
|
||||
DataCallback callback_;
|
||||
|
||||
private:
|
||||
// Disable copy constructors
|
||||
Filter(const Filter&);
|
||||
void operator=(const Filter&);
|
||||
const Filter& operator=(Filter);
|
||||
};
|
||||
|
||||
/*!
|
||||
@ -173,7 +179,7 @@ public:
|
||||
*/
|
||||
typedef boost::shared_ptr<Filter> FilterPtr;
|
||||
|
||||
class BlockingFilter;
|
||||
class BlockingFilter; // Forward declaration
|
||||
|
||||
/*!
|
||||
* Shared Pointer of BlockingFilter, returned by
|
||||
@ -183,7 +189,7 @@ class BlockingFilter;
|
||||
*/
|
||||
typedef boost::shared_ptr<BlockingFilter> BlockingFilterPtr;
|
||||
|
||||
class BufferedFilter;
|
||||
class BufferedFilter; // Forward declaration
|
||||
|
||||
/*!
|
||||
* Shared Pointer of BufferedFilter, returned by
|
||||
@ -637,6 +643,10 @@ public:
|
||||
}
|
||||
|
||||
private:
|
||||
// Disable copy constructors
|
||||
SerialListener(const SerialListener&);
|
||||
void operator=(const SerialListener&);
|
||||
const SerialListener& operator=(SerialListener);
|
||||
// delimeter tokenizer function
|
||||
static void
|
||||
_delimeter_tokenizer (const std::string &data,
|
||||
|
||||
@ -52,7 +52,9 @@ SerialListener::callback() {
|
||||
if (this->callback_queue.timed_wait_and_pop(pair, 10)) {
|
||||
if (this->listening) {
|
||||
try {
|
||||
if (pair.first != NULL && pair.second != NULL) {
|
||||
pair.first->callback_((*pair.second));
|
||||
}
|
||||
} catch (std::exception &e) {
|
||||
this->handle_exc(e);
|
||||
}// try callback
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user