mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Merge ssize_t branch.
This commit is contained in:
parent
4482929734
commit
18e165558b
102 changed files with 2659 additions and 1677 deletions
|
@ -170,7 +170,7 @@ bootstrap(void *call)
|
|||
long
|
||||
PyThread_start_new_thread(void (*func)(void *), void *arg)
|
||||
{
|
||||
unsigned long rv;
|
||||
uintptr_t rv;
|
||||
callobj obj;
|
||||
|
||||
dprintf(("%ld: PyThread_start_new_thread called\n",
|
||||
|
@ -186,7 +186,7 @@ PyThread_start_new_thread(void (*func)(void *), void *arg)
|
|||
return -1;
|
||||
|
||||
rv = _beginthread(bootstrap, 0, &obj); /* use default stack size */
|
||||
if (rv == (unsigned long)-1) {
|
||||
if (rv == (uintptr_t)-1) {
|
||||
/* I've seen errno == EAGAIN here, which means "there are
|
||||
* too many threads".
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue