diff options
author | mydesktop <dev.mc2@gmail.com> | 2014-04-30 16:50:06 -0400 |
---|---|---|
committer | mydesktop <dev.mc2@gmail.com> | 2014-04-30 16:50:06 -0400 |
commit | 79a4bedc3669dfd3a3845e78ede144b5d7be7d1c (patch) | |
tree | b34d971740ab96625267b6d2fd3f03fa6ac81977 /src/p2p | |
parent | various fixes to allow mac osx compilation (diff) | |
download | monero-79a4bedc3669dfd3a3845e78ede144b5d7be7d1c.tar.xz |
mac osx building fixes
Diffstat (limited to 'src/p2p')
-rw-r--r-- | src/p2p/net_node.inl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/p2p/net_node.inl b/src/p2p/net_node.inl index 4dafa2342..31d3e6597 100644 --- a/src/p2p/net_node.inl +++ b/src/p2p/net_node.inl @@ -278,9 +278,12 @@ namespace nodetool m_net_server.add_idle_handler(boost::bind(&node_server<t_payload_net_handler>::idle_worker, this), 1000); m_net_server.add_idle_handler(boost::bind(&t_payload_net_handler::on_idle, &m_payload_handler), 1000); + boost::thread::attributes attrs; + attrs.set_stack_size(THREAD_STACK_SIZE); + //go to loop LOG_PRINT("Run net_service loop( " << thrds_count << " threads)...", LOG_LEVEL_0); - if(!m_net_server.run_server(thrds_count)) + if(!m_net_server.run_server(thrds_count, true, attrs)) { LOG_ERROR("Failed to run net tcp server!"); } |