Skip to content

Commit bfc7567

Browse files
committed
---
yaml --- r: 23006 b: refs/heads/master c: 7437004 h: refs/heads/master v: v3
1 parent acdd5fd commit bfc7567

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,5 +1,5 @@
11
---
2-
refs/heads/master: c973732a23da75b09dd6d35ce6f951c8bcd6cb01
2+
refs/heads/master: 74370042aa698c0360aadf356ccc4305cc2c0cd2
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
55
refs/heads/try: ffbe0e0e00374358b789b0037bcb3a577cd218be

trunk/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);

trunk/src/test/run-pass/osmain.rs renamed to trunk/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)