🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.c
Article #309612

Re: Szukam przykładu thread_pool

#309612
From: Borneq
Date: Sat, 13 Jan 2018 19:25
13 lines
1342 bytes
W dniu 13.01.2018 o 14:09, Borneq pisze:
> https://en.wikipedia.org/wiki/Thread_pool

Standardowy przykład: 
https://github.com/vit-vit/CTPL/blob/master/example.cpp

1. co znaczy  } second(", functor");w linii 50?
2.
co znaczy:
std::future<void> qw = p.push(std::ref(first));  // function
poza tym są : p.push(aga, 7);  // function
poza tym jak wołać asynchronicznie metodę obiektu?
co znaczy p.push(Second(", functor"));  // functor, move ctor
Technical Details
Message-ID: <p3dmeq$8pr$1@node2.news.atman.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mail
References: <p3d0dt$k1h$1@node2.news.atman.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mail
From: Borneq <borneq@antyspam.hidden.pl>
Newsgroups: pl.comp.lang.c
Subject: Re: Szukam przykładu thread_pool
Date: Sat, 13 Jan 2018 20:25:14 +0100
Organization: ATMAN - ATM S.A.
Lines: 13
Message-ID: <p3dmeq$8pr$1@node2.news.atman.pl>
References: <p3d0dt$k1h$1@node2.news.atman.pl>
NNTP-Posting-Host: public-gprs352921.centertel.pl
Mime-Version: 1.0
X-Trace: node2.news.atman.pl 1515871514 9019 37.47.9.218 (13 Jan 2018 19:25:14 GMT)
X-Complaints-To: usenet@atman.pl
NNTP-Posting-Date: Sat, 13 Jan 2018 19:25:14 +0000 (UTC)
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2
In-Reply-To: <p3d0dt$k1h$1@node2.news.atman.pl>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit