mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-05-13 09:16:25 +00:00
working vhacd
renamed ThreadPool to TorqueThreadPool to avoid conflics fixed data transmission between stages of convexDecome and trimesh creation TODO: re-add our own functions for generating sphere/cylinder/box
This commit is contained in:
parent
679f0ff065
commit
eb33fe04af
15 changed files with 116 additions and 75 deletions
|
|
@ -65,11 +65,11 @@ struct NetAsync::NameLookupRequest
|
|||
|
||||
/// Work item issued to the thread pool for each lookup request.
|
||||
|
||||
struct NetAsync::NameLookupWorkItem : public ThreadPool::WorkItem
|
||||
struct NetAsync::NameLookupWorkItem : public TorqueThreadPool::WorkItem
|
||||
{
|
||||
typedef ThreadPool::WorkItem Parent;
|
||||
typedef TorqueThreadPool::WorkItem Parent;
|
||||
|
||||
NameLookupWorkItem( NameLookupRequest& request, ThreadPool::Context* context = 0 )
|
||||
NameLookupWorkItem( NameLookupRequest& request, TorqueThreadPool::Context* context = 0 )
|
||||
: Parent( context ),
|
||||
mRequest( request )
|
||||
{
|
||||
|
|
@ -133,7 +133,7 @@ void NetAsync::queueLookup(const char* remoteAddr, NetSocket socket)
|
|||
dStrncpy(lookupRequest.remoteAddr, remoteAddr, sizeof(lookupRequest.remoteAddr));
|
||||
|
||||
ThreadSafeRef< NameLookupWorkItem > workItem( new NameLookupWorkItem( lookupRequest ) );
|
||||
ThreadPool::GLOBAL().queueWorkItem( workItem );
|
||||
TorqueThreadPool::GLOBAL().queueWorkItem( workItem );
|
||||
}
|
||||
|
||||
bool NetAsync::checkLookup(NetSocket socket, void* out_h_addr,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue