[Ecls-list] Proposed diff against CVS HEAD related to threads
Matthew Mondor
mm_lists at pulsar-zone.net
Thu Jul 2 04:55:28 UTC 2009
On Fri, 19 Jun 2009 18:40:57 -0400
Matthew Mondor <mm_lists at pulsar-zone.net> wrote:
> I propose the following diff against CVS HEAD to fix the following
> issues:
>
> - According to POSIX, threads created using the default attributes must
> be joined for their return result to be obtained and their resources
> freed. This means that an implementation may even leak full thread
> stacks if they're not joined. However, it's possible to set the
> detachstate to PTHREAD_CREATE_DETACHED meaning that we will not join
> the thread; we can then safely expect its resources to be
> automatially reclaimed when the thread terminates.
>
> - Attribute objects may safely be initialized in advance allowing
> cleaner and more optimized code. Moreover, it is not necessary to
> create an attribute object if the default behavior is wanted, where
> NULL can be passed.
>
> - On NetBSD, the _NP suffix to some macros caused building errors.
> These few cases where also fixed in this diff; this might require
> addition of preprocessor conditionals for some systems, perhaps.
[ with diff supplied in thread "Missing thread-related diff :)" ]
I posted this a little while ago but have received no reply whatsoever;
by looking at the CVS repository it doesn't seem to have been applied
either. Any opinion about this?
Thanks,
--
Matt
More information about the ecl-devel
mailing list