| www.delorie.com/archives/browse.cgi | search |
--=-M4nKYvTWOmNcZECPC4jb
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
On Sat, 2002-09-28 at 01:33, Robert Collins wrote:
> On Sat, 2002-09-28 at 01:25, egor duda wrote:
> > just check what pthread_create() returns when given NULL in attr
> > (second) parameter. It's a simple 2-line test program. My reading of
> > the code + running under gdb shows that it returns EAGAIN.
>=20
> I have checked, and it works.
Oh, a little less briskly:
pthread_create calls pthread::create without check parameters.
pthread::create calls precreate(newattr) without checking for null or
non null.
precreate(newattr) checks for NULL, and if nonnull copies the
attributes, if null uses the default values.
BUT: I think I've just caught the cause.
I (stupidly) made pthread::create a void function.
so pthread_create looks like:
int pthread_create (..)
{ =20
return lastvalueonstack;
}
oops. Fixing now.
Rob
--=20
---
GPG key available at: http://users.bigpond.net.au/robertc/keys.txt.
---
--=-M4nKYvTWOmNcZECPC4jb
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQA9lHw6I5+kQ8LJcoIRAjRxAJ93McSJ983JgJGJ6gCaznlnE8ZuOACfUTD1
j41GGS9rbg67goi2EUQhpxk=
=YccV
-----END PGP SIGNATURE-----
--=-M4nKYvTWOmNcZECPC4jb--
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |