File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: c973732a23da75b09dd6d35ce6f951c8bcd6cb01
2
+ refs/heads/master: 74370042aa698c0360aadf356ccc4305cc2c0cd2
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
5
5
refs/heads/try: ffbe0e0e00374358b789b0037bcb3a577cd218be
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ export single_threaded;
71
71
export thread_per_core;
72
72
export thread_per_task;
73
73
export manual_threads;
74
- export osmain ;
74
+ export platform_thread ;
75
75
76
76
/* Data types */
77
77
@@ -116,7 +116,7 @@ enum sched_mode {
116
116
* The main OS thread is the thread used to launch the runtime which,
117
117
* in most cases, is the process's initial thread as created by the OS.
118
118
*/
119
- osmain
119
+ platform_thread
120
120
}
121
121
122
122
/**
@@ -1176,10 +1176,10 @@ fn spawn_raw(opts: task_opts, +f: fn~()) {
1176
1176
}
1177
1177
threads
1178
1178
}
1179
- osmain => 0 u /* Won't be used */
1179
+ platform_thread => 0 u /* Won't be used */
1180
1180
} ;
1181
1181
1182
- let sched_id = if opts. mode != osmain {
1182
+ let sched_id = if opts. mode != platform_thread {
1183
1183
rustrt:: rust_new_sched ( num_threads)
1184
1184
} else {
1185
1185
rustrt:: rust_osmain_sched_id ( )
@@ -1899,10 +1899,10 @@ fn test_avoid_copying_the_body_unlinked() {
1899
1899
}
1900
1900
1901
1901
#[test]
1902
- fn test_osmain () {
1902
+ fn test_platform_thread () {
1903
1903
let po = comm::port();
1904
1904
let ch = comm::chan(po);
1905
- do task().sched_mode(osmain ).spawn {
1905
+ do task().sched_mode(platform_thread ).spawn {
1906
1906
comm::send(ch, ());
1907
1907
}
1908
1908
comm::recv(po);
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ fn run(i: int) {
14
14
return ;
15
15
}
16
16
17
- do task:: task ( ) . sched_mode ( task:: osmain ) . unlinked ( ) . spawn {
17
+ do task:: task ( ) . sched_mode ( task:: platform_thread ) . unlinked ( ) . spawn {
18
18
task:: yield ( ) ;
19
19
do task:: task ( ) . sched_mode ( task:: single_threaded) . unlinked ( ) . spawn {
20
20
task:: yield ( ) ;
You can’t perform that action at this time.
0 commit comments