コード例 #1
0
ファイル: QueueKeeper.cs プロジェクト: nolik/BSUIR_labs
        private QueueKeeper()
        {
            url_queue    = new Queue <string>();
            filter_queue = new Queue <List <Channel> >();
            send_queue   = new Queue <List <Article> >();
            sw           = new ThreadPools.StringWrapper();

            loader = new ThreadPools.Loader(url_queue, 2);
            filter = new ThreadPools.Filter(filter_queue, sw, 2);
            mailer = new ThreadPools.Mailer(send_queue, 2);
        }
コード例 #2
0
ファイル: QueueKeeper.cs プロジェクト: azhi/BSUIR_labs
        private QueueKeeper()
        {
            url_queue = new Queue<string>();
            filter_queue = new Queue<List<Channel>>();
            send_queue = new Queue<List<Article>>();
            sw = new ThreadPools.StringWrapper();

            loader = new ThreadPools.Loader(url_queue, 2);
            filter = new ThreadPools.Filter(filter_queue, sw, 2);
            mailer = new ThreadPools.Mailer(send_queue, 2);
        }