[Python-Dev] thread_foobar.h routines

Russ Cox rsc@plan9.bell-labs.com
Tue, 15 Jan 2002 22:26:51 -0500


I'm writing thread routines for the Plan 9 port of Python.

Is it correct that:

	PyThread_acquire_lock returns 1 on success, 0 on failure.
	PyThread_down_sema returns 0 on success, -1 on failure.

It appears that way, but the inconsistency bothers me.

Thanks.
Russ