Drop enqueued elements when a port is destructed. Closes #1155
This commit is contained in:
parent
3cc2641fc3
commit
138d9ca5d5
7 changed files with 39 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue