diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2016-10-14 09:59:39 +0200 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2016-10-16 19:28:17 +0200 |
commit | 3064ae98e5c3cee223f9e229ff20f86cb1b06b8b (patch) | |
tree | b29ab700ec75a407c6fda53fa004dbe42a59bdba /docs/src | |
parent | 538782fbdab81116a818c25d18c4df4da58ac18a (diff) | |
download | libuv-3064ae98e5c3cee223f9e229ff20f86cb1b06b8b.tar.gz libuv-3064ae98e5c3cee223f9e229ff20f86cb1b06b8b.zip |
unix: don't malloc in uv_thread_create()
Simplify and optimize uv_thread_create() by casting the function pointer
to the prototype that pthread_create() wants. Avoids the indirection of
an intermediate callback and heap-allocating custom state that is really
only there to placate the compiler.
PR-URL: https://github.com/libuv/libuv/pull/1094
Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
Diffstat (limited to 'docs/src')
0 files changed, 0 insertions, 0 deletions