aboutsummaryrefslogtreecommitdiff
path: root/docs/src
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2016-10-14 09:59:39 +0200
committerBen Noordhuis <info@bnoordhuis.nl>2016-10-16 19:28:17 +0200
commit3064ae98e5c3cee223f9e229ff20f86cb1b06b8b (patch)
treeb29ab700ec75a407c6fda53fa004dbe42a59bdba /docs/src
parent538782fbdab81116a818c25d18c4df4da58ac18a (diff)
downloadlibuv-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