[Yunq] Delete client capability in destructor.
Add a method to the server class to create an unowned capability. This makes it simpler to create a capability for passing to other processes. Duplicate the init yellowstone cap when using it temporarily.
This commit is contained in:
parent
96a2f74e14
commit
ad7794c694
24 changed files with 98 additions and 9 deletions
|
|
@ -3,9 +3,17 @@
|
|||
|
||||
#include <glacier/buffer/byte_buffer.h>
|
||||
#include <glacier/buffer/cap_buffer.h>
|
||||
#include <mammoth/util/debug.h>
|
||||
#include <zcall.h>
|
||||
|
||||
{% for interface in interfaces %}
|
||||
|
||||
{{interface.name}}Client::~{{interface.name}}Client() {
|
||||
if (endpoint_ != 0) {
|
||||
check(ZCapRelease(endpoint_));
|
||||
}
|
||||
}
|
||||
|
||||
{% for method in interface.methods %}
|
||||
|
||||
{% if method.request == None %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue