Exemplo n.º 1
0
        void QueueWork()
        {
            MyWorkItem *work1;
            MyWorkItem *work2;
            
            work1 = new MyWorkItem(TotalWorkItems++, true);
            work2 = new MyWorkItem(TotalWorkItems++, true);

            WqLow->QueueWork(work1);
            WqHigh->QueueWork(work2);
        }
Exemplo n.º 2
0
        void QueueExtraWork()
        {
            MyWorkItem *work1;
            
            work1 = new MyWorkItem(TotalWorkItems++, true);
            WqLow->QueueWork(work1);

            work1 = new MyWorkItem(TotalWorkItems++, true);
            WqLow->QueueWork(work1);

            work1 = new MyWorkItem(TotalWorkItems++, true);
            WqLow->QueueWork(work1);
        }