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