A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2000-August/008478.html below:

typedef ??? pthread_t and hacky return statements

[Python-Dev] pthreads question: typedef ??? pthread_t and hacky return statements [Python-Dev] pthreads question: typedef ??? pthread_t and hacky return statementsThomas Wouters thomas@xs4all.net
Fri, 18 Aug 2000 09:17:03 +0200
On Thu, Aug 17, 2000 at 11:39:29PM -0400, Tim Peters wrote:

> So how about a runtime test for what's actually important (and it's not
> Monterey!)?
> 
> 	if (sizeof(threadid) <= sizeof(long))
> 		return (long)threadid;
> 
> End of problem, right?  It's a cheap runtime test in a function whose speed
> isn't critical anyway.

Note that this is what autoconf is for. It also helps to group all that
behaviour-testing code together, in one big lump noone pretends to
understand ;)

-- 
Thomas Wouters <thomas@xs4all.net>

Hi! I'm a .signature virus! copy me into your .signature file to help me spread!



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4