rust/src/rt/rust_port.h

35 lines
687 B
C
Raw Normal View History

#ifndef RUST_PORT_H
#define RUST_PORT_H
2011-07-29 13:00:44 -05:00
class rust_port : public kernel_owned<rust_port>, public rust_cond {
public:
2011-07-29 13:00:44 -05:00
RUST_REFCOUNTED(rust_port);
rust_kernel *kernel;
rust_task *task;
size_t unit_sz;
ptr_vec<rust_token> writers;
ptr_vec<rust_chan> chans;
lock_and_signal lock;
rust_port(rust_task *task, size_t unit_sz);
~rust_port();
2010-08-09 09:52:07 -05:00
void log_state();
bool receive(void *dptr);
};
//
// Local Variables:
// mode: C++
// fill-column: 78;
// indent-tabs-mode: nil
// c-basic-offset: 4
// buffer-file-coding-system: utf-8-unix
2011-07-13 15:51:20 -05:00
// compile-command: "make -k -C $RBUILD 2>&1 | sed -e 's/\\/x\\//x:\\//g'";
// End:
//
#endif /* RUST_PORT_H */