Skip to content

Commit 65bf634

Browse files
committed
implement fileDescriptor getter
1 parent 307e534 commit 65bf634

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/swift/Wrapper.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,9 @@ public class DispatchIO : DispatchObject {
102102
dispatch_io_barrier(self.__wrapped, execute)
103103
}
104104

105-
// FIXME: getter:DispatchIO.fileDescriptor(self:) ==> dispatch_io_get_descriptor
105+
public var fileDescriptor: Int32 {
106+
return dispatch_io_get_descriptor(__wrapped)
107+
}
106108

107109
public func setLimit(highWater: Int) {
108110
dispatch_io_set_high_water(__wrapped, highWater)

0 commit comments

Comments
 (0)