public inbox for ecos-devel@sourceware.org
 help / color / mirror / Atom feed
* Error in eCosThreadUtils.h
@ 2008-10-14 12:55 Lars Poeschel
  0 siblings, 0 replies; only message in thread
From: Lars Poeschel @ 2008-10-14 12:55 UTC (permalink / raw)
  To: ecos-devel

[-- Attachment #1: Type: text/plain, Size: 504 bytes --]

Hello!

Is there a bug in eCosThreadUtils.h line 64:

#ifndef NO_THREADS
	typedef int THREAD_ID;
#else
	typedef pthread_t THREAD_ID:
#endif

Shouldn't it be reversed, so that if NO_THREADS is defined that  
THREAD_ID is typdef'd as int ?
But the real question is: Is this still valid ? As I don't see that  
NO_THREADS could be defined somewhere.
It should either be replaced by a pthreads configure test or (which I  
would opt for) be removed completly (as well in eCosThreadUtils.cpp).

Regards,
Lars

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 194 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-10-14 12:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-14 12:55 Error in eCosThreadUtils.h Lars Poeschel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).