diff options
author | Thomas Grill <xovo@users.sourceforge.net> | 2005-12-15 23:04:06 +0000 |
---|---|---|
committer | Thomas Grill <xovo@users.sourceforge.net> | 2005-12-15 23:04:06 +0000 |
commit | ec54f5e49b24dc57e389b7bce58f967ee69a4b01 (patch) | |
tree | 15d495973fa6053835fd03b50e3f64dc6717815e /externals/grill/flext/source/flqueue.cpp | |
parent | 90d5b8b4a064420d74678654e94ea4755b377f21 (diff) |
new flext::CopyAtoms function
fixed dangerous spot (also memory leak) with message queuing
flext::Forward has more incarnations now
added message bundles (flext::MsgBundle)
fixes for gcc 3.3, changing FLEXT_USECMEM to FLEXT_USE_CMEMw
fixed initialization of message bundle items
svn path=/trunk/; revision=4228
Diffstat (limited to 'externals/grill/flext/source/flqueue.cpp')
-rwxr-xr-x | externals/grill/flext/source/flqueue.cpp | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/externals/grill/flext/source/flqueue.cpp b/externals/grill/flext/source/flqueue.cpp index efd6fd51..b1adfb24 100755 --- a/externals/grill/flext/source/flqueue.cpp +++ b/externals/grill/flext/source/flqueue.cpp @@ -49,14 +49,8 @@ class Queue: { public: inline bool Empty() const { return Size() == 0; } - - inline void Push(MsgBundle *m) - { - if(m) { - Put(m); - Trigger(); - } - } + + inline void Push(MsgBundle *m); // defined after MsgBundle (gcc 3.3. won't take it otherwise...) }; static Queue queue; @@ -266,6 +260,13 @@ private: } }; +inline void Queue::Push(MsgBundle *m) +{ + if(m) { + Put(m); + Trigger(); + } +} #if FLEXT_QMODE == 2 static flext::ThrCond qthrcond; |