| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent bb45037 commit 82247cb
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -35,21 +35,18 @@ PyThread__init_thread(void) | |||
| 35 | 35 | long | |
| 36 | 36 | PyThread_start_new_thread(void (*func)(void *), void *arg) | |
| 37 | 37 | { | |
| 38 | - int aThread; | ||
| 39 | - int success = 0; | ||
| 38 | + int thread_id; | ||
| 40 | 39 | ||
| 41 | - aThread = _beginthread(func, | ||
| 40 | + thread_id = _beginthread(func, | ||
| 42 | 41 | NULL, | |
| 43 | 42 | OS2_STACKSIZE(_pythread_stacksize), | |
| 44 | 43 | arg); | |
| 45 | 44 | ||
| 46 | - if (aThread == -1) { | ||
| 47 | - success = -1; | ||
| 48 | - fprintf(stderr, "aThread failed == %d", aThread); | ||
| 45 | + if (thread_id == -1) { | ||
| 49 | 46 | dprintf(("_beginthread failed. return %ld\n", errno)); | |
| 50 | 47 | } | |
| 51 | 48 | ||
| 52 | - return success; | ||
| 49 | + return thread_id; | ||
| 53 | 50 | } | |
| 54 | 51 | ||
| 55 | 52 | long | |
| Back | FazBrowse Home | New Git URL |
0 commit comments