Develop and Download Open Source Software

Browse Subversion Repository

Diff of /branches/mty-makai/mty.c

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

revision 258 by notanpe, Fri Jan 7 09:02:08 2011 UTC revision 259 by notanpe, Wed Jan 12 03:25:32 2011 UTC
# Line 304  thread_create_p(pthread_t *th, NORETURN Line 304  thread_create_p(pthread_t *th, NORETURN
304     優先度設定したりアイドルスレッド起こしても     優先度設定したりアイドルスレッド起こしても
305     おもしろくないので、そのへんは今後の研究課題。 */     おもしろくないので、そのへんは今後の研究課題。 */
306    
307    #if 0
308  #include <linux/unistd.h>  #include <linux/unistd.h>
309  _syscall0(pid_t,gettid)  _syscall0(pid_t,gettid)
310    #define thread_get_tid() gettid()
311    #endif /* 0 */
312    
313    #if 0
314    #include <sys/types.h>
315  #define thread_get_tid() gettid()  #define thread_get_tid() gettid()
316    #endif /* 0 */
317    
318    #include <sys/syscall.h>
319    #define thread_get_tid() (pid_t)syscall(SYS_gettid)
320    
321  static  static
322  int thread_set_affinity(pid_t tid, int i)  int thread_set_affinity(pid_t tid, int i)

Legend:
Removed from v.258  
changed lines
  Added in v.259

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26