Hello,
Am 03.10.2012 11:02, schrieb Markus Elfring:
>> The main difference is really the starting point of this discussion,
>> the differing function types for threads. And this one is well
>> justified from the POV of C, int is the type that you'd have
>> to expect as a return from a thread, just as main returns an int
>> to the environment.
>>
>> On my page for possible defects/improvements for C
>
> I am curious if you will get feedback by standardisation committee members for
> your descriptions.
> http://p99.gforge.inria.fr/defects-a...functions.html
>
> Did you forward any of them to an "official" communication channel?
I am not sure what channel that would be, the ISO committees don't
seem to be very open to the outside world. But as Keith suggest,
comp.std.c has probably better chances to be read, so I am
crossposting there.
> Do the discussed functions just use an interface style that we all know from a
> function like "free"?
> http://pubs.opengroup.org/onlinepubs...ions/free.html
>
> Do such standard specifications allow different error handling implementations?
Yes, I think so. It clearly defines under what circumstances the
behavior is undefined, so an implementation would be allowed to define
a behavior as it wishes in these cases.
Generally, if you look at the text for free that you are citing, and
compare it with the text about the threads in C11, you'll notice a
difference in quality. C11 certainly lacked some iterations of
discussion and error correction before it went into the standard. In
particular, a better coordination with the POSIX committee would have
been in order concerning threads.
Jens