From: <ped...@us...> - 2007-07-01 01:53:45
|
Revision: 1033 http://svn.sourceforge.net/cegcc/?rev=1033&view=rev Author: pedroalves Date: 2007-06-30 18:47:48 -0700 (Sat, 30 Jun 2007) Log Message: ----------- Damn stupid bug. Writes should block until *all* the data is flushed. * PipeDev.cpp (Write): Remove breaknext and its usage. Modified Paths: -------------- trunk/cegcc/tools/PipeLib/ChangeLog trunk/cegcc/tools/PipeLib/PipeDev.cpp Modified: trunk/cegcc/tools/PipeLib/ChangeLog =================================================================== --- trunk/cegcc/tools/PipeLib/ChangeLog 2007-06-30 23:55:43 UTC (rev 1032) +++ trunk/cegcc/tools/PipeLib/ChangeLog 2007-07-01 01:47:48 UTC (rev 1033) @@ -1,3 +1,7 @@ +2007-07-01 Pedro Alves <ped...@po...> + + * PipeDev.cpp (Write): Remove breaknext and its usage. + 2007-06-30 Pedro Alves <ped...@po...> * Makefile (download): Depend on all instead of only on Modified: trunk/cegcc/tools/PipeLib/PipeDev.cpp =================================================================== --- trunk/cegcc/tools/PipeLib/PipeDev.cpp 2007-06-30 23:55:43 UTC (rev 1032) +++ trunk/cegcc/tools/PipeLib/PipeDev.cpp 2007-07-01 01:47:48 UTC (rev 1033) @@ -180,7 +180,7 @@ { #ifndef NOLOCKS /* auto - only release one at a time. */ - EventHandle = CreateEvent (NULL, FALSE, FALSE, NULL); + EventHandle = CreateEvent (NULL, FALSE, FALSE, NULL); #endif } @@ -794,7 +794,6 @@ PipeDeviceContext* dev = pOpenContext->DeviceContext; - BOOL breaknext = FALSE; HANDLE Events[2]; do @@ -847,9 +846,6 @@ if (dwCount == 0) break; - - if (breaknext) - break; } LOG ("going to wait for event\n"); @@ -857,7 +853,6 @@ { case WAIT_OBJECT_0 + 1: LOG ("got read event\n"); - breaknext = TRUE; break; default: /* With either wait error or AbortEvent This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |