Don't return req->result after posting the work request. It's possible (if unlikely) for a worker thread to process the request before the main thread reaches the return statement. |
||
|---|---|---|
| .. | ||
| unix | ||
| win | ||
| fs-poll.c | ||
| inet.c | ||
| uv-common.c | ||
| uv-common.h | ||
Don't return req->result after posting the work request. It's possible (if unlikely) for a worker thread to process the request before the main thread reaches the return statement. |
||
|---|---|---|
| .. | ||
| unix | ||
| win | ||
| fs-poll.c | ||
| inet.c | ||
| uv-common.c | ||
| uv-common.h | ||