Skip to content

Commit 9ed3f85

Browse files
olsonjefferybrson
authored andcommitted
---
yaml --- r: 12563 b: refs/heads/master c: 12f2f4c h: refs/heads/master i: 12561: ab1f7a5 12559: 95f5365 v: v3
1 parent 0209ad7 commit 9ed3f85

File tree

4 files changed

+18
-18
lines changed

4 files changed

+18
-18
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: e604c15df18f5d8129b129eb46bb5e0a6f13c27b
2+
refs/heads/master: 12f2f4c15c467991d5675bbc4be7f7c2012ee5d3
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
55
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf

trunk/src/libstd/uv.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1252,7 +1252,7 @@ mod test {
12521252
log(debug, output);
12531253
assert native_handle_size as uint == rust_handle_size;
12541254
}
1255-
1255+
12561256
#[test]
12571257
#[ignore(cfg(target_os = "freebsd"))]
12581258
fn test_uv_struct_size_uv_timer_t() {

trunk/src/rt/rust_kernel.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@ class rust_kernel {
7373
rust_scheduler* get_scheduler_by_id_nolock(rust_sched_id id);
7474
void end_weak_tasks();
7575

76-
// Used to communicate with the process-side, global libuv loop
77-
uintptr_t global_loop_chan;
78-
void** global_async_handle;
76+
// Used to communicate with the process-side, global libuv loop
77+
uintptr_t global_loop_chan;
78+
void** global_async_handle;
7979

8080
public:
8181
struct rust_env *env;
@@ -122,10 +122,10 @@ class rust_kernel {
122122

123123
bool send_to_port(rust_port_id chan, void *sptr);
124124

125-
uintptr_t* get_global_loop() { return &global_loop_chan; }
126-
void** get_global_async_handle() { return global_async_handle; }
127-
void set_global_async_handle(void* handle) {
128-
*global_async_handle = handle; }
125+
uintptr_t* get_global_loop() { return &global_loop_chan; }
126+
void** get_global_async_handle() { return global_async_handle; }
127+
void set_global_async_handle(void* handle) {
128+
*global_async_handle = handle; }
129129
};
130130

131131
template <typename T> struct kernel_owned {

trunk/src/rt/rust_uv.cpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -209,12 +209,12 @@ rust_uv_hilvl_timer_start(uv_timer_t* the_timer, uint32_t timeout,
209209

210210
extern "C" int
211211
rust_uv_timer_init(uv_loop_t* loop, uv_timer_t* timer) {
212-
return uv_timer_init(loop, timer);
212+
return uv_timer_init(loop, timer);
213213
}
214214

215215
extern "C" int
216216
rust_uv_timer_start(uv_timer_t* the_timer, uv_timer_cb cb,
217-
uint32_t timeout, uint32_t repeat) {
217+
uint32_t timeout, uint32_t repeat) {
218218
return uv_timer_start(the_timer, cb, timeout, repeat);
219219
}
220220

@@ -439,22 +439,22 @@ rust_uv_ip4_addr(const char* ip, int port) {
439439

440440
extern "C" uintptr_t*
441441
rust_uv_get_kernel_global_chan_ptr() {
442-
uintptr_t* result = rust_get_current_task()->kernel->get_global_loop();
442+
uintptr_t* result = rust_get_current_task()->kernel->get_global_loop();
443443
rust_task* task = rust_get_current_task();
444-
LOG(task, stdlib, "global loop: %lu", (unsigned long int)result);
445-
LOG(task, stdlib,"global loop val: %lu", (unsigned long int)*result);
446-
return result;
444+
LOG(task, stdlib, "global loop: %lu", (unsigned long int)result);
445+
LOG(task, stdlib,"global loop val: %lu", (unsigned long int)*result);
446+
return result;
447447
}
448448

449449
extern "C" void**
450450
rust_uv_get_kernel_global_async_handle() {
451-
return rust_get_current_task()->kernel->get_global_async_handle();
451+
return rust_get_current_task()->kernel->get_global_async_handle();
452452
}
453453
extern "C" void
454454
rust_uv_set_kernel_global_async_handle(uv_async_t* handle) {
455-
rust_get_current_task()->kernel->set_global_async_handle((void*)handle);
455+
rust_get_current_task()->kernel->set_global_async_handle((void*)handle);
456456
}
457457
extern "C" void
458458
rust_uv_free_kernel_global_async_handle() {
459-
free((void*)rust_get_current_task()->kernel->get_global_async_handle());
459+
free((void*)rust_get_current_task()->kernel->get_global_async_handle());
460460
}

0 commit comments

Comments
 (0)