SerialPort - initial async implementation on Linux and bugfixes (dotnet/corefx#33027)
authorKrzysztof Wicher <mordotymoja@gmail.com>
Tue, 30 Oct 2018 20:17:31 +0000 (13:17 -0700)
committerGitHub <noreply@github.com>
Tue, 30 Oct 2018 20:17:31 +0000 (13:17 -0700)
commit1d856da6e20c094264d5fd5b5df91412e78a7a78
tree935a7a23ce62ceb92105be1a504e4005c85cd1fc
parente976d8889cba3cca32d9f532db8d05e56bfd583c
SerialPort - initial async implementation on Linux and bugfixes (dotnet/corefx#33027)

* SerialPort - initial async implementation on Linux and bugfixes

* Apply review feedback

* Fix dequeueing on Release builds

* Remove InternalResources.Windows.cs (use Win32Marshal.cs from Common folder)

* Fix build errors on Windows

* fix build errors on uap

* Apply review feedback (+ IOLoop pausing when no activity)

* Fix comment

* apply feedback

* Remove code duplication

Commit migrated from https://github.com/dotnet/corefx/commit/d69f113afb5c43702e7c8477c6dbe2f9e9465355
60 files changed:
src/libraries/Native/Unix/System.IO.Ports.Native/pal_serial.c
src/libraries/System.IO.Ports/src/Resources/Strings.resx
src/libraries/System.IO.Ports/src/System.IO.Ports.csproj
src/libraries/System.IO.Ports/src/System/IO/Ports/InternalResources.cs
src/libraries/System.IO.Ports/src/System/IO/Ports/SerialPort.cs [moved from src/libraries/System.IO.Ports/src/System/IO/Ports/SerialPort.Windows.cs with 94% similarity]
src/libraries/System.IO.Ports/src/System/IO/Ports/SerialStream.Unix.cs
src/libraries/System.IO.Ports/src/System/IO/Ports/SerialStream.Windows.cs
src/libraries/System.IO.Ports/src/System/IO/Ports/SerialStream.cs [new file with mode: 0644]
src/libraries/System.IO.Ports/tests/SerialPort/AbortOnError.cs
src/libraries/System.IO.Ports/tests/SerialPort/BaudRate.cs
src/libraries/System.IO.Ports/tests/SerialPort/BreakState.cs
src/libraries/System.IO.Ports/tests/SerialPort/DataBits.cs
src/libraries/System.IO.Ports/tests/SerialPort/DiscardInBuffer.cs
src/libraries/System.IO.Ports/tests/SerialPort/DiscardNull.cs
src/libraries/System.IO.Ports/tests/SerialPort/DtrEnable.cs
src/libraries/System.IO.Ports/tests/SerialPort/ErrorEvent.cs
src/libraries/System.IO.Ports/tests/SerialPort/Event_Close_Stress.cs
src/libraries/System.IO.Ports/tests/SerialPort/Event_Generic.cs
src/libraries/System.IO.Ports/tests/SerialPort/Handshake.cs
src/libraries/System.IO.Ports/tests/SerialPort/Parity.cs
src/libraries/System.IO.Ports/tests/SerialPort/ParityReplace.cs
src/libraries/System.IO.Ports/tests/SerialPort/PinChangedEvent.cs
src/libraries/System.IO.Ports/tests/SerialPort/ReadBufferSize.cs
src/libraries/System.IO.Ports/tests/SerialPort/ReadByte_Generic.cs
src/libraries/System.IO.Ports/tests/SerialPort/ReadChar.cs
src/libraries/System.IO.Ports/tests/SerialPort/ReadChar_Generic.cs
src/libraries/System.IO.Ports/tests/SerialPort/ReadExisting_Generic.cs
src/libraries/System.IO.Ports/tests/SerialPort/ReadLine.cs
src/libraries/System.IO.Ports/tests/SerialPort/ReadLine_Generic.cs
src/libraries/System.IO.Ports/tests/SerialPort/ReadTo.cs
src/libraries/System.IO.Ports/tests/SerialPort/ReadTo_Generic.cs
src/libraries/System.IO.Ports/tests/SerialPort/Read_byte_int_int_Generic.cs
src/libraries/System.IO.Ports/tests/SerialPort/Read_char_int_int_Generic.cs
src/libraries/System.IO.Ports/tests/SerialPort/ReceivedBytesThreshold.cs
src/libraries/System.IO.Ports/tests/SerialPort/ReceivedEvent.cs
src/libraries/System.IO.Ports/tests/SerialPort/RtsEnable.cs
src/libraries/System.IO.Ports/tests/SerialPort/SerialPortRegressions.cs
src/libraries/System.IO.Ports/tests/SerialPort/StopBits.cs
src/libraries/System.IO.Ports/tests/SerialPort/WriteBufferSize.cs
src/libraries/System.IO.Ports/tests/SerialPort/WriteLine_Generic.cs
src/libraries/System.IO.Ports/tests/SerialPort/Write_byte_int_int_Generic.cs
src/libraries/System.IO.Ports/tests/SerialPort/Write_char_int_int_Generic.cs
src/libraries/System.IO.Ports/tests/SerialPort/Write_str_Generic.cs
src/libraries/System.IO.Ports/tests/SerialStream/BeginRead.cs
src/libraries/System.IO.Ports/tests/SerialStream/BeginRead_Generic.cs
src/libraries/System.IO.Ports/tests/SerialStream/BeginWrite.cs
src/libraries/System.IO.Ports/tests/SerialStream/BeginWrite_Generic.cs
src/libraries/System.IO.Ports/tests/SerialStream/EndRead.cs
src/libraries/System.IO.Ports/tests/SerialStream/EndWrite.cs
src/libraries/System.IO.Ports/tests/SerialStream/Flush.cs
src/libraries/System.IO.Ports/tests/SerialStream/ReadByte.cs
src/libraries/System.IO.Ports/tests/SerialStream/ReadByte_Generic.cs
src/libraries/System.IO.Ports/tests/SerialStream/Read_byte_int_int_Generic.cs
src/libraries/System.IO.Ports/tests/SerialStream/WriteByte_Generic.cs
src/libraries/System.IO.Ports/tests/SerialStream/WriteTimeout.cs
src/libraries/System.IO.Ports/tests/SerialStream/Write_byte_int_int_Generic.cs
src/libraries/System.IO.Ports/tests/Support/KnownFailureAttribute.cs [new file with mode: 0644]
src/libraries/System.IO.Ports/tests/Support/SerialPortConnection.cs
src/libraries/System.IO.Ports/tests/Support/TCSupport.cs
src/libraries/System.IO.Ports/tests/System.IO.Ports.Tests.csproj