1258_cthread.patch
| b/code/nel/include/nel/misc/p_thread.h Thu Mar 17 21:44:01 2011 +0100 | ||
|---|---|---|
| 61 | 61 | 
    private:  | 
| 62 | 62 | 
    uint8 _State; // 0=not created, 1=started, 2=finished  | 
| 63 | 63 | 
    uint32 _StackSize;  | 
| 64 | 
     | 
|
| 65 | 
    protected:  | 
|
| 64 | 66 | 
    pthread_t _ThreadHandle;  | 
| 65 | 67 | 
    };  | 
| 66 | 68 | 
     | 
| b/code/nel/src/misc/p_thread.cpp Thu Mar 17 21:44:01 2011 +0100 | ||
|---|---|---|
| 39 | 39 | 
     | 
| 40 | 40 | 
    if(pthread_setspecific(threadSpecificKey, this) != 0)  | 
| 41 | 41 | 
    			throw EThread("cannot set main thread ptr in thread specific storage.");
   | 
| 42 | 
    _ThreadHandle=pthread_self();  | 
|
| 42 | 43 | 
    }  | 
| 43 | 44 | 
     | 
| 44 | 45 | 
    ~CPMainThread()  | 
| 45 | 46 | 
    ViewerCfg.IgPath = cvIgPath.asString();  |