|
|
|
|||||
|
where to invoke the new Thread in AMD
Hi,
I have seen the example that was previously posted in the forum...and have gone about it as said...the code was as given class interpolateJobThread : public IceUtil::Thread { virtual void run() { while(1) { _jobMutex.lock(); if(_jobs.size()!=0) { JobPtr firstJob=(JobPtr)_jobs.front(); _jobs.pop_front(); firstJob->execute(); } _jobMutex.unlock(); Sleep(100); } } }; ----------code8 int main() { //... //we can also start a thead pool to ... IceUtil::ThreadPtr t = new interpolateJobThread; IceUtil::ThreadControl tc = t->start(); //... } I am writing the code in Java...I am not sure where to create the interpolateJobThread instance and invoke the start method.. please help. Thanks. |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Ice 3.1.1 core dump while invoke on replica | sinofool | Help Center | 8 | 11-06-2006 10:32 AM |
| how to invoke an external shell script in ice? | ewiniar | Help Center | 2 | 04-21-2006 04:28 AM |
| Getting Couldn't invoke on the object to get its interface while binding to IcePack | jaggu | Help Center | 7 | 07-18-2005 05:38 PM |
| Ice::Thread and GUI with Qt | catalin | Help Center | 5 | 09-08-2004 11:20 AM |
| One proxy one thread? | level | Help Center | 4 | 03-30-2004 10:05 PM |