🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Szukam przykładu thread_pool

#309617
From: Borneq
Date: Sun, 14 Jan 2018 05:23
19 lines
1572 bytes
W dniu 14.01.2018 o 04:33, bartekltg pisze:
> class bla{
>    void run (int a, double b);
> }

> Tylko tu twoja kalsa musi być kompatybilna z pulą, bo ta chce, by wszytko,
> co wejdzie jako jej pierwszy argument było intem - numerem watku.

Tego do końca nie rozumiem: argument "int a" w run jest numerem wątku?
i każda funkcja podobnie?
Czy to oznacza że w push pomija się akurat ten argument:
void first(int id)
p.push(first);
czyli dla bla::run kolejno:
- &bla::run
- wskaźnik na obiekt klasy bla
- tu pomijamy int a
- następnie wsadzamy double b
?
Technical Details
Message-ID: <p3epgt$92o$1@node1.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> <p3dmeq$8pr$1@node2.news.atman.pl> <3f9208f5-2d5f-4b25-bc54-8b0e23bc55c9@googlegroups.com>

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: Sun, 14 Jan 2018 06:23:43 +0100
Organization: ATMAN - ATM S.A.
Lines: 20
Message-ID: <p3epgt$92o$1@node1.news.atman.pl>
References: <p3d0dt$k1h$1@node2.news.atman.pl> <p3dmeq$8pr$1@node2.news.atman.pl> <3f9208f5-2d5f-4b25-bc54-8b0e23bc55c9@googlegroups.com>
NNTP-Posting-Host: public-gprs352921.centertel.pl
Mime-Version: 1.0
X-Trace: node1.news.atman.pl 1515907421 9304 37.47.9.218 (14 Jan 2018 05:23:41 GMT)
X-Complaints-To: usenet@atman.pl
NNTP-Posting-Date: Sun, 14 Jan 2018 05:23:41 +0000 (UTC)
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2
In-Reply-To: <3f9208f5-2d5f-4b25-bc54-8b0e23bc55c9@googlegroups.com>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit