stella.io
Class PollingRS485Server.ConcurrentTest
java.lang.Object
stella.io.PollingRS485Server.ConcurrentTest
- Enclosing class:
- PollingRS485Server
public static final class PollingRS485Server.ConcurrentTest
- extends Object
Test concurrent access to the serial line by polling and additionally
using the CastingRS485Server.writeCommand(java.lang.String) method to additionally write commands and
retrieve replies from the serial line. In the version prior to 14/08/02,
the CastingRS485Server.writeCommand(java.lang.String) method released the lock between writing the
string and reading the reply which is a bug. This class is intended for
testing if synchronizing during the entire process (write and read)
solves the problem.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PollingRS485Server.ConcurrentTest
public PollingRS485Server.ConcurrentTest()
main
public static void main(String[] arg)
throws IOException
- Throws:
IOException