[cvs] / xvidcore / src / motion / motion_smp.h Repository:
ViewVC logotype

Diff of /xvidcore/src/motion/motion_smp.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1, Fri Feb 24 08:46:22 2006 UTC revision 1.7, Tue Mar 9 10:00:14 2010 UTC
# Line 29  Line 29 
29  #ifndef SMP_MOTION_H  #ifndef SMP_MOTION_H
30  #define SMP_MOTION_H  #define SMP_MOTION_H
31    
 #ifdef WIN32  
 #include <windows.h>  
 #define pthread_t               HANDLE  
 #define pthread_create(t,u,f,d) *(t)=CreateThread(NULL,0,f,d,0,NULL)  
 #define pthread_join(t,s)       { WaitForSingleObject(t,INFINITE); \  
                                   CloseHandle(t); }  
 #define sched_yield()                   Sleep(0)  
 #define HAVE_PTHREAD 1  
   
 #elif defined(SYS_BEOS)  
 #include <kernel/OS.h>  
 #define pthread_t               thread_id  
 #define pthread_create(t,u,f,d) { *(t)=spawn_thread(f,"",10,d); \  
                                   resume_thread(*(t)); }  
 #define pthread_join(t,s)       wait_for_thread(t,(long*)s)  
 #define sched_yield()                   snooze(0) /* is this correct? */  
 #define HAVE_PTHREAD 1  
   
 #elif HAVE_PTHREAD  
 #include <pthread.h>  
 #endif  
   
   
 #define THREADS         3  
   
32  typedef struct  typedef struct
33  {  {
34          pthread_t handle;               /* thread's handle */          pthread_t handle;               /* thread's handle */
# Line 80  Line 55 
55          const IMAGE * fRefHV;          const IMAGE * fRefHV;
56    
57          int MVmax, mvSum, mvCount;              /* out */          int MVmax, mvSum, mvCount;              /* out */
58    
59            int minfcode, minbcode;
60  } SMPmotionData;  } SMPmotionData;
61    
62    

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.7

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.4