comparison Python/pystate.c @ 68586:dc245d681901 3.2

#11565: Merge with 3.1.
author Ezio Melotti <ezio.melotti@gmail.com>
date Wed, 16 Mar 2011 11:35:38 +0200
parents 3c9232a684ae bf94b6a73fc8
children 7b7ad9a88451 d3af2a2b621b
comparison
equal deleted inserted replaced
68581:9a817ab166e0 68586:dc245d681901
510 return NULL; 510 return NULL;
511 511
512 /* for i in all interpreters: 512 /* for i in all interpreters:
513 * for t in all of i's thread states: 513 * for t in all of i's thread states:
514 * if t's frame isn't NULL, map t's id to its frame 514 * if t's frame isn't NULL, map t's id to its frame
515 * Because these lists can mutute even when the GIL is held, we 515 * Because these lists can mutate even when the GIL is held, we
516 * need to grab head_mutex for the duration. 516 * need to grab head_mutex for the duration.
517 */ 517 */
518 HEAD_LOCK(); 518 HEAD_LOCK();
519 for (i = interp_head; i != NULL; i = i->next) { 519 for (i = interp_head; i != NULL; i = i->next) {
520 PyThreadState *t; 520 PyThreadState *t;