Attempt to provide an abort mecanism for windows users...

This commit is contained in:
Romuald Conty 2011-05-09 11:14:43 +00:00
parent 468027ba2b
commit 921d28d976
5 changed files with 55 additions and 15 deletions

View file

@ -224,8 +224,9 @@ static const struct timeval tvTimeout = {
* @return 0 on success, otherwise driver error code
*/
int
uart_receive (serial_port sp, byte_t * pbtRx, const size_t szRx, int iAbortFd)
uart_receive (serial_port sp, byte_t * pbtRx, const size_t szRx, void * abort_p)
{
int iAbortFd = *((int*)abort_p);
struct timeval tv = tvTimeout;
struct timeval *ptv = &tv;
int received_bytes_count = 0;