Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.programming.threads > #686
| Newsgroups | comp.programming.threads |
|---|---|
| Subject | Re: Is pthread_create( id, 0, f, &something_on_my_stack ); safe? |
| References | <4EC9C581.405E@2ndquadrant.com> <9iub8jF7g0U1@mid.individual.net> <x6zkfp52nx.fsf@2ndquadrant.com> <cae6c8c3-6406-485e-8cc2-7cda775a5f8d@h31g2000pro.googlegroups.com> <x662id43re.fsf@2ndquadrant.com> <4ecad9c6$0$6961$e4fe514c@news2.news.xs4all.nl> |
| From | Johann 'Myrkraverk' Oskarsson <johann@2ndquadrant.com> |
| Date | Tue, 22 Nov 2011 05:31:57 +0000 |
| Message-ID | <x6zkfo3epe.fsf@2ndquadrant.com> (permalink) |
| User-Agent | Gnus/5.1008 (Gnus v5.10.8) XEmacs/21.4.22 (usg-unix-v) |
| Cancel-Lock | sha1:OqYKl+uGDhpur+mfxGDX5LWVVdQ= |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| NNTP-Posting-Host | $$5hrnjedxib4w36u.news.x-privat.org |
| Organization | X-Privat.Org NNTP Server - http://www.x-privat.org |
| Lines | 20 |
| X-Authenticated-User | $$n34o8zi$e5fbcy3tijlef |
| X-Complaints-To | abuse@x-privat.org |
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!newsfeed.datemas.de!newsfeed.x-privat.org!x-privat.org!not-for-mail |
| Xref | x330-a1.tempe.blueboxinc.net comp.programming.threads:686 |
Show key headers only | View raw
Casper H.S. Dik <Casper.Dik@OrSPaMcle.COM> writes:
> If it's only one fd, cast it to a pointer and use the pointer as an
> integer; there is really no reason to interpret the pointer as a
> pointer, right?
Alas, it's two or I'd probably do this. I *might* restrict myself to
64bit compilations and encode the two integers in one pointer but
that's just silly and gains me nothing in maintainability.
Or I can "assume" the file descriptors are low and encode them both in
the same integer. But that's even more silly and a maintenance
nightmare.
--
Johann Oskarsson http://www.2ndquadrant.com/ |[]
PostgreSQL Development, 24x7 Support, Training and Services --+--
|
Blog: http://my.opera.com/myrkraverk/blog/
Back to comp.programming.threads | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Is pthread_create( id, 0, f, &something_on_my_stack ); safe? Johann 'Myrkraverk' Oskarsson <johann@2ndquadrant.com> - 2011-11-21 03:29 +0000
Re: Is pthread_create( id, 0, f, &something_on_my_stack ); safe? Ian Collins <ian-news@hotmail.com> - 2011-11-21 20:00 +1300
Re: Is pthread_create( id, 0, f, &something_on_my_stack ); safe? Marcel Müller <news.5.maazl@spamgourmet.com> - 2011-11-21 08:48 +0100
Re: Is pthread_create( id, 0, f, &something_on_my_stack ); safe? Johann 'Myrkraverk' Oskarsson <johann@2ndquadrant.com> - 2011-11-21 07:56 +0000
Re: Is pthread_create( id, 0, f, &something_on_my_stack ); safe? Ian Collins <ian-news@hotmail.com> - 2011-11-21 21:01 +1300
Re: Is pthread_create( id, 0, f, &something_on_my_stack ); safe? David Schwartz <davids@webmaster.com> - 2011-11-21 12:06 -0800
Re: Is pthread_create( id, 0, f, &something_on_my_stack ); safe? Johann 'Myrkraverk' Oskarsson <johann@2ndquadrant.com> - 2011-11-21 20:30 +0000
Re: Is pthread_create( id, 0, f, &something_on_my_stack ); safe? Casper H.S. Dik <Casper.Dik@OrSPaMcle.COM> - 2011-11-21 23:07 +0000
Re: Is pthread_create( id, 0, f, &something_on_my_stack ); safe? Johann 'Myrkraverk' Oskarsson <johann@2ndquadrant.com> - 2011-11-22 05:31 +0000
Re: Is pthread_create( id, 0, f, &something_on_my_stack ); safe? blmblm@myrealbox.com <blmblm.myrealbox@gmail.com> - 2011-11-25 17:49 +0000
Re: Is pthread_create( id, 0, f, &something_on_my_stack ); safe? David Schwartz <davids@webmaster.com> - 2011-11-23 12:53 -0800
Re: Is pthread_create( id, 0, f, &something_on_my_stack ); safe? Robert Wessel <robertwessel2@yahoo.com> - 2011-11-21 02:28 -0600
Re: Is pthread_create( id, 0, f, &something_on_my_stack ); safe? "Ersek, Laszlo" <lacos@caesar.elte.hu> - 2011-11-22 21:06 +0100
csiph-web