Browse Subversion Repository
Diff of /branches/mty-makai/mty.c
Parent Directory
| Revision Log
| Patch
| 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 |
|
|
|