Share via


CThreadPool::QueueRequest

Call this method to queue a work item to be handled by a thread in the pool.

BOOL QueueRequest( 
   Worker::RequestType request  
) throw( );

Parameters

  • request
    The request to be queued.

Return Value

Returns TRUE on success, FALSE on failure.

Remarks

This method adds a work item to the queue. The threads in the pool pick items off the queue in the order in which they are received.

Requirements

Header: atlutil.h

See Also

Reference

CThreadPool Class

Other Resources

CThreadPool Members