diff options
| author | Brian Anderson <banderson@mozilla.com> | 2011-11-13 15:28:59 -0800 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2011-11-13 15:43:58 -0800 |
| commit | 138d9ca5d536a67465f8b97bee12a0c24b9e3233 (patch) | |
| tree | 85ddf5f24b70f65556bd1f597c4797a428798f74 /src/rt/rust_builtin.cpp | |
| parent | 3cc2641fc389dcdf8b348c1a9dbc6dfe48c5547a (diff) | |
| download | rust-138d9ca5d536a67465f8b97bee12a0c24b9e3233.tar.gz rust-138d9ca5d536a67465f8b97bee12a0c24b9e3233.zip | |
Drop enqueued elements when a port is destructed. Closes #1155
Diffstat (limited to 'src/rt/rust_builtin.cpp')
| -rw-r--r-- | src/rt/rust_builtin.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/rt/rust_builtin.cpp b/src/rt/rust_builtin.cpp index e8109ea7a04..db9704b540b 100644 --- a/src/rt/rust_builtin.cpp +++ b/src/rt/rust_builtin.cpp @@ -475,6 +475,11 @@ del_port(rust_port *port) { port->deref(); } +extern "C" CDECL size_t +rust_port_size(rust_port *port) { + return port->size(); +} + extern "C" CDECL rust_port_id get_port_id(rust_port *port) { return port->id; |
