Skip to content

Commit affa0d6

Browse files
robarnoldEric Holk
authored andcommitted
---
yaml --- r: 3546 b: refs/heads/master c: 4e59b0b h: refs/heads/master v: v3
1 parent a7ff478 commit affa0d6

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 02a5949abaa4e888ecb470023ea2f29cd6bde43b
2+
refs/heads/master: 4e59b0be544bfda5c533c2024c981861ce012709

trunk/src/rt/rust_chan.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
rust_chan::rust_chan(rust_task *task,
88
maybe_proxy<rust_port> *port,
99
size_t unit_sz) :
10+
ref_count(1),
1011
task(task),
1112
port(port),
1213
buffer(task, unit_sz) {

trunk/src/rt/rust_chan.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#ifndef RUST_CHAN_H
22
#define RUST_CHAN_H
33

4-
class rust_chan : public rc_base<rust_chan>,
5-
public task_owned<rust_chan>,
4+
class rust_chan : public task_owned<rust_chan>,
65
public rust_cond {
76
public:
7+
RUST_REFCOUNTED_WITH_DTOR(rust_chan, destroy())
88
rust_chan(rust_task *task, maybe_proxy<rust_port> *port, size_t unit_sz);
99

1010
~rust_chan();

0 commit comments

Comments
 (0)