diff options
| author | Michael Bebenita <[email protected]> | 2010-08-17 23:40:07 -0700 |
|---|---|---|
| committer | Michael Bebenita <[email protected]> | 2010-08-17 23:49:57 -0700 |
| commit | 2c1ec6771bd09266308686ab13ca32e2aa73da49 (patch) | |
| tree | acbcae9da89c0f6d37fccdf8b4091f003e798683 /src/rt/rust_message.h | |
| parent | Add a "special" rust_log flag to be used for debugging in cases where the ful... (diff) | |
| download | rust-2c1ec6771bd09266308686ab13ca32e2aa73da49.tar.xz rust-2c1ec6771bd09266308686ab13ca32e2aa73da49.zip | |
Lots of changes around memory managment in the Runtime. Added memory regions and fixed race caused by calling rust_srv::malloc() from multiple threads when sending messages.
Diffstat (limited to 'src/rt/rust_message.h')
| -rw-r--r-- | src/rt/rust_message.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/rt/rust_message.h b/src/rt/rust_message.h index b7b8568a..6d986acf 100644 --- a/src/rt/rust_message.h +++ b/src/rt/rust_message.h @@ -9,12 +9,11 @@ /** * Abstract base class for all message types. */ -class rust_message : public lock_free_queue_node, - public dom_owned<rust_message> { +class rust_message : public lock_free_queue_node { public: - rust_dom *dom; const char* label; private: + rust_dom *_dom; rust_task *_source; protected: rust_task *_target; @@ -70,7 +69,7 @@ public: data_message(uint8_t *buffer, size_t buffer_sz, const char* label, rust_task *source, rust_task *target, rust_port *port); - ~data_message(); + virtual ~data_message(); void process(); /** |