version 1.14, 2008/06/26 18:32:42
|
version 1.15, 2008/08/21 22:43:35
|
|
|
class T_Parms | class T_Parms |
{ | { |
public: | public: |
AutoPtr<CIMClient> client; |
CIMClient* client; |
Uint32 indicationSendCount; | Uint32 indicationSendCount; |
Uint32 uniqueID; | Uint32 uniqueID; |
}; | }; |
|
|
ThreadReturnType PEGASUS_THREAD_CDECL _executeTests(void *parm) | ThreadReturnType PEGASUS_THREAD_CDECL _executeTests(void *parm) |
{ | { |
Thread *my_thread = (Thread *)parm; | Thread *my_thread = (Thread *)parm; |
T_Parms *parms = (T_Parms *)my_thread->get_parm(); |
AutoPtr<T_Parms> parms((T_Parms *)my_thread->get_parm()); |
CIMClient *client = parms->client.get(); |
CIMClient* client = parms->client; |
Uint32 indicationSendCount = parms->indicationSendCount; | Uint32 indicationSendCount = parms->indicationSendCount; |
Uint32 id = parms->uniqueID; | Uint32 id = parms->uniqueID; |
char id_[4]; | char id_[4]; |
|
|
{ | { |
// package parameters, create thread and run... | // package parameters, create thread and run... |
AutoPtr<T_Parms> parms(new T_Parms()); | AutoPtr<T_Parms> parms(new T_Parms()); |
parms->client.reset(client); |
parms->client = client; |
parms->indicationSendCount = indicationSendCount; | parms->indicationSendCount = indicationSendCount; |
parms->uniqueID = uniqueID; | parms->uniqueID = uniqueID; |
AutoPtr<Thread> t(new Thread(_executeTests, (void*)parms.release(), false)); | AutoPtr<Thread> t(new Thread(_executeTests, (void*)parms.release(), false)); |
|
|
for(Uint32 i=0; i< runClientThreadCount; i++) | for(Uint32 i=0; i< runClientThreadCount; i++) |
{ | { |
clientThreads[i]->join(); | clientThreads[i]->join(); |
|
delete clientThreads[i]; |
} | } |
| |
delete[] clientConnections; | delete[] clientConnections; |