packages/Windows API Code Pack 1.1/source/Samples/DirectX/CS/Direct2D/D2DShapes/D2DShapesControl.cs
/// <summary>
/// The render thread procedure - calls.
/// </summary>
The render thread procedure - calls.
The render thread procedure - calls .
private void RenderThreadProcedure()
        {
            do
            {
                lock (renderSyncObject)
                {
                    if (Render != null)
                        Render();
                }
                if (Render == null)
                    Thread.Sleep(1);
            }
            while (killThread.WaitOne(0) == false);
        }
private void RenderThreadProcedure ( ) { do { lock ( renderSyncObject ) { if ( Render != null ) Render ( ) ; } if ( Render == null ) Thread . Sleep ( 1 ) ; } while ( killThread . WaitOne ( 0 ) == false ) ; }
The render thread procedure - calls.
The render thread procedure - calls .