• R/O
  • SSH
  • HTTPS

naniya: Commit


Commit MetaInfo

Revision259 (tree)
Zeit2011-01-12 12:25:32
Autornotanpe

Log Message

ubuntsu 9.10 でコンパイルを通すため若干変更。(gettid() だからしょうがないか)

Ändern Zusammenfassung

Diff

--- branches/mty-makai/mty.c (revision 258)
+++ branches/mty-makai/mty.c (revision 259)
@@ -304,11 +304,20 @@
304304 優先度設定したりアイドルスレッド起こしても
305305 おもしろくないので、そのへんは今後の研究課題。 */
306306
307+#if 0
307308 #include <linux/unistd.h>
308309 _syscall0(pid_t,gettid)
310+#define thread_get_tid() gettid()
311+#endif /* 0 */
309312
313+#if 0
314+#include <sys/types.h>
310315 #define thread_get_tid() gettid()
316+#endif /* 0 */
311317
318+#include <sys/syscall.h>
319+#define thread_get_tid() (pid_t)syscall(SYS_gettid)
320+
312321 static
313322 int thread_set_affinity(pid_t tid, int i)
314323 {
Show on old repository browser