dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/IO Stream.cs,1.6,1.7


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/IO Stream.cs,1.6,1.7
Date: Wed, 02 Apr 2003 00:18:53 -0500

Update of /cvsroot/dotgnu-pnet/pnetlib/runtime/System/IO
In directory subversions:/tmp/cvs-serv25185/runtime/System/IO

Modified Files:
        Stream.cs 
Log Message:


Queue asynchronous I/O requests to the completion queue in
the "ThreadPool" class.


Index: Stream.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/runtime/System/IO/Stream.cs,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** Stream.cs   1 Apr 2003 23:56:51 -0000       1.6
--- Stream.cs   2 Apr 2003 05:18:50 -0000       1.7
***************
*** 80,84 ****
  
                // Run the operation thread.
!               private void Run()
                                {
                                        try
--- 80,84 ----
  
                // Run the operation thread.
!               private void Run(Object state)
                                {
                                        try
***************
*** 111,122 ****
                                        if(Thread.CanStartThreads())
                                        {
!                                               Thread thread = new Thread(new 
ThreadStart(Run));
!                                               thread.IsBackground = true;
!                                               thread.Start();
                                        }
                                        else
                                        {
                                                completedSynchronously = true;
!                                               Run();
                                        }
                                }
--- 111,121 ----
                                        if(Thread.CanStartThreads())
                                        {
!                                               ThreadPool.QueueCompletionItem
!                                                       (new WaitCallback(Run), 
null);
                                        }
                                        else
                                        {
                                                completedSynchronously = true;
!                                               Run(null);
                                        }
                                }





reply via email to

[Prev in Thread] Current Thread [Next in Thread]