Compare commits
2 commits
42a98a44e7
...
a7b2354ad2
Author | SHA1 | Date | |
---|---|---|---|
a7b2354ad2 | |||
733831c30e |
2 changed files with 3 additions and 1 deletions
|
@ -622,6 +622,8 @@ struct watcher_impl {
|
|||
: ctx{strand.ref->ctx}, strand_{strand.ref->strand_},
|
||||
fd_{*ctx->asio, fd} {}
|
||||
|
||||
~watcher_impl() { fd_.release(); }
|
||||
|
||||
void wait_read(watcher::handler h) {
|
||||
if (!read_in_progress_) {
|
||||
read_in_progress_ = true;
|
||||
|
|
|
@ -756,7 +756,7 @@ pub const file_descriptor = struct {
|
|||
const Self = @This();
|
||||
|
||||
pub fn init(tag_: []const u8, fd: i32) !Self {
|
||||
return .{ .handle = c.thespian_file_descriptor_create(tag_.ptr, fd) orelse return log_last_error(error.ThespianFileDescriptorInitFailed) };
|
||||
return .{ .handle = c.thespian_file_descriptor_create(tag_.ptr, fd) orelse return error.ThespianFileDescriptorInitFailed };
|
||||
}
|
||||
|
||||
pub fn wait_write(self: *const Self) !void {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue