diff options
author | Jakob Odersky <jodersky@gmail.com> | 2013-06-21 22:42:48 +0200 |
---|---|---|
committer | Jakob Odersky <jodersky@gmail.com> | 2013-06-21 22:42:48 +0200 |
commit | 5652600a7c6c9d8dbd715e077f3bca320d3e765b (patch) | |
tree | c919cb16d3b15e464482ec08274a3d19e2a88d5d /src/main/java | |
parent | 554ba2a2227374f2078e80bca292aed02465e10f (diff) | |
download | akka-serial-5652600a7c6c9d8dbd715e077f3bca320d3e765b.tar.gz akka-serial-5652600a7c6c9d8dbd715e077f3bca320d3e765b.tar.bz2 akka-serial-5652600a7c6c9d8dbd715e077f3bca320d3e765b.zip |
synchronization
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/com/github/jodersky/flow/low/NativeSerial.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/java/com/github/jodersky/flow/low/NativeSerial.java b/src/main/java/com/github/jodersky/flow/low/NativeSerial.java index b488d5e..132c0ef 100644 --- a/src/main/java/com/github/jodersky/flow/low/NativeSerial.java +++ b/src/main/java/com/github/jodersky/flow/low/NativeSerial.java @@ -53,8 +53,10 @@ class NativeSerial { * this function, the 'serial' pointer will become invalid, make sure you only call it once. This function is NOT * thread safe, make sure no read or write is in prgress when this function is called (the reason is that per * close manual page, close should not be called on a file descriptor that is in use by another thread). - * @param serial pointer to serial configuration that is to be closed (and freed) */ - native static void close(long serial); + * @param serial pointer to serial configuration that is to be closed (and freed) + * @return 0 on success + * @return E_IO on error */ + native static int close(long serial); /**Sets debugging option. If debugging is enabled, detailed error message are printed from method calls. */ native static void debug(boolean value); |