Skip to content

Commit c2b39d9

Browse files
committed
---
yaml --- r: 20898 b: refs/heads/snap-stage3 c: 7437004 h: refs/heads/master v: v3
1 parent 2f24704 commit c2b39d9

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: e430a699f2c60890d9b86069fd0c68a70ece7120
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: c973732a23da75b09dd6d35ce6f951c8bcd6cb01
4+
refs/heads/snap-stage3: 74370042aa698c0360aadf356ccc4305cc2c0cd2
55
refs/heads/try: ffbe0e0e00374358b789b0037bcb3a577cd218be
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/libcore/task.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export single_threaded;
7171
export thread_per_core;
7272
export thread_per_task;
7373
export manual_threads;
74-
export osmain;
74+
export platform_thread;
7575

7676
/* Data types */
7777

@@ -116,7 +116,7 @@ enum sched_mode {
116116
* The main OS thread is the thread used to launch the runtime which,
117117
* in most cases, is the process's initial thread as created by the OS.
118118
*/
119-
osmain
119+
platform_thread
120120
}
121121

122122
/**
@@ -1176,10 +1176,10 @@ fn spawn_raw(opts: task_opts, +f: fn~()) {
11761176
}
11771177
threads
11781178
}
1179-
osmain => 0u /* Won't be used */
1179+
platform_thread => 0u /* Won't be used */
11801180
};
11811181

1182-
let sched_id = if opts.mode != osmain {
1182+
let sched_id = if opts.mode != platform_thread {
11831183
rustrt::rust_new_sched(num_threads)
11841184
} else {
11851185
rustrt::rust_osmain_sched_id()
@@ -1899,10 +1899,10 @@ fn test_avoid_copying_the_body_unlinked() {
18991899
}
19001900
19011901
#[test]
1902-
fn test_osmain() {
1902+
fn test_platform_thread() {
19031903
let po = comm::port();
19041904
let ch = comm::chan(po);
1905-
do task().sched_mode(osmain).spawn {
1905+
do task().sched_mode(platform_thread).spawn {
19061906
comm::send(ch, ());
19071907
}
19081908
comm::recv(po);

branches/snap-stage3/src/test/run-pass/osmain.rs renamed to branches/snap-stage3/src/test/run-pass/platform_thread.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ fn run(i: int) {
1414
return;
1515
}
1616

17-
do task::task().sched_mode(task::osmain).unlinked().spawn {
17+
do task::task().sched_mode(task::platform_thread).unlinked().spawn {
1818
task::yield();
1919
do task::task().sched_mode(task::single_threaded).unlinked().spawn {
2020
task::yield();

0 commit comments

Comments
 (0)