Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alexcrichton/green-rs
/ functions
Functions
573 in github.com/alexcrichton/green-rs
⨍
Functions
573
◇
Types & classes
151
↓ 2 callers
Method
start
Point to the low end of the allocated stack
libgreen/src/stack.rs:81
↓ 2 callers
Method
take_unwrap_home
(&mut self)
libgreen/src/task.rs:264
↓ 2 callers
Function
to_sockaddr
(s: &str, port: u16)
librustuv/tests/tcp.rs:9
↓ 2 callers
Method
try_steals
Try stealing from all queues the scheduler knows about. This naive implementation can steal from our own queue or from other special schedulers.
libgreen/src/sched.rs:503
↓ 2 callers
Method
write_at
Write the contents of `buf` at position `pos`. If `pos` is -1, then the data will be written at the current position in the file.
librustuv/src/fs.rs:134
↓ 1 callers
Function
accept
(listener: &PipeListener)
librustuv/src/pipe.rs:290
↓ 1 callers
Function
accept
(listener: &TcpListener)
librustuv/src/tcp.rs:300
↓ 1 callers
Method
accept
(&mut self)
librustuv/src/pipe.rs:309
↓ 1 callers
Method
active
(&self)
libgreen/src/lib.rs:553
↓ 1 callers
Method
as_uint
(&self)
libgreen/src/task.rs:309
↓ 1 callers
Method
bind
(addr: ip::SocketAddr)
librustuv/src/udp.rs:51
↓ 1 callers
Method
bind
(name: &T)
librustuv/src/pipe.rs:218
↓ 1 callers
Method
bind
(addr: ip::SocketAddr)
librustuv/src/tcp.rs:223
↓ 1 callers
Method
borrow
Borrow a reference to the local event loop. If there is no local event loop, or the local event loop is already borrowed, then an error is returned.
librustuv/src/event_loop.rs:49
↓ 1 callers
Method
check
Check at runtime that the task has *not* transplanted itself to a different I/O loop while executing.
librustuv/src/homing.rs:118
↓ 1 callers
Method
clone
(&self)
librustuv/src/pipe.rs:186
↓ 1 callers
Method
clone
(&self)
librustuv/src/tcp.rs:191
↓ 1 callers
Method
clone
(&self)
librustuv/src/queue.rs:142
↓ 1 callers
Method
clone
(&self)
librustuv/src/timeout.rs:177
↓ 1 callers
Method
clone
(&self)
libgreen/src/message_queue.rs:64
↓ 1 callers
Method
close
Invokes uv_close This is unsafe as there is no guarantee that this handle is not actively being used by other objects.
librustuv/src/raw/mod.rs:94
↓ 1 callers
Method
close
Close an event loop. This function is unsafe because there is no guarantee that the event loop is not currently active elsewhere. If the event loops
librustuv/src/raw/loop_.rs:61
↓ 1 callers
Method
connect
(name: &T)
librustuv/src/pipe.rs:88
↓ 1 callers
Method
connect
(addr: ip::SocketAddr)
librustuv/src/tcp.rs:91
↓ 1 callers
Method
decrement
(&mut self)
libgreen/src/lib.rs:557
↓ 1 callers
Method
dequeue
Dequeue a blocked task with a specified token. This is unsafe because it is only safe to invoke while on the home event loop, and there is no guarante
librustuv/src/access.rs:95
↓ 1 callers
Method
do_work
(mut self: Box<Scheduler>, stask: Box<GreenTask>)
libgreen/src/sched.rs:438
↓ 1 callers
Method
drop
(&mut self)
libgreen/src/sched.rs:1389
↓ 1 callers
Method
end
Point one uint beyond the high end of the allocated stack
libgreen/src/stack.rs:87
↓ 1 callers
Method
fdatasync
(&mut self, uv_loop: Loop, file: c_int, cb: uvll::uv_fs_cb)
librustuv/src/raw/fs.rs:257
↓ 1 callers
Method
find_work
First step in the process is to find a task. This function does that by first checking the local queue, and if there is no work there, trying to steal
libgreen/src/sched.rs:465
↓ 1 callers
Method
fire
(&mut self)
libgreen/src/basic.rs:168
↓ 1 callers
Method
fstat
(&mut self, uv_loop: Loop, file: c_int, cb: uvll::uv_fs_cb)
librustuv/src/raw/fs.rs:191
↓ 1 callers
Method
ftruncate
(&mut self, uv_loop: Loop, file: c_int, offset: i64, cb: uvll::uv_fs_cb)
librustuv/src/raw/fs.rs:266
↓ 1 callers
Function
get_host_addresses_on
Same as `get_host_addresses`, but specifies what event loop to run on.
librustuv/src/addrinfo.rs:45
↓ 1 callers
Method
getpeername
(&mut self)
librustuv/src/raw/tcp.rs:83
↓ 1 callers
Method
go_home
This function will move tasks to run on their home I/O scheduler. Note that this function does *not* pin the task to the I/O scheduler, but rather it
librustuv/src/homing.rs:66
↓ 1 callers
Method
grant
Grants access to half of a duplex stream, timing out if necessary. On success, Ok(Guard) is returned and access has been granted to the stream. If a
librustuv/src/timeout.rs:71
↓ 1 callers
Method
green
(self, pool: &'a mut SchedPool)
libgreen/src/lib.rs:598
↓ 1 callers
Method
home
(&self)
librustuv/src/udp.rs:242
↓ 1 callers
Method
home
(&'r mut self)
librustuv/src/process.rs:228
↓ 1 callers
Method
idle
Run the idle callback if one is registered
libgreen/src/basic.rs:89
↓ 1 callers
Method
increment
(&mut self)
libgreen/src/lib.rs:549
↓ 1 callers
Function
initialize_call_frame
(regs: &mut Registers, fptr: InitFn, arg: uint, procedure: raw::Procedure, sp: *mut u
libgreen/src/context.rs:168
↓ 1 callers
Method
io_stat
(&self)
librustuv/src/raw/fs.rs:53
↓ 1 callers
Function
local_id
()
librustuv/src/homing.rs:92
↓ 1 callers
Function
max_cached_stacks
()
libgreen/src/stack.rs:146
↓ 1 callers
Method
maybe_yield
(mut self: Box<Scheduler>, cur: Box<GreenTask>)
libgreen/src/sched.rs:852
↓ 1 callers
Method
message
(&mut self, message: Message)
libgreen/src/basic.rs:71
↓ 1 callers
Function
new_sched_rng
()
libgreen/src/sched.rs:986
↓ 1 callers
Method
open
(file: libc::c_int)
librustuv/src/pipe.rs:75
↓ 1 callers
Method
open
(path: &Path)
librustuv/src/fs.rs:31
↓ 1 callers
Method
open
(file: libc::c_int)
librustuv/src/tcp.rs:78
↓ 1 callers
Method
pausable_idle_callback
FIXME: Seems like a really weird requirement to have an event loop provide.
libgreen/src/basic.rs:135
↓ 1 callers
Method
peer_name
(&mut self)
librustuv/src/tcp.rs:170
↓ 1 callers
Method
pipe_connect
(&mut self, handle: Pipe, name: &CString,
librustuv/src/raw/connect.rs:24
↓ 1 callers
Function
pool
()
libgreen/src/basic.rs:210
↓ 1 callers
Method
pop
(&self)
libgreen/src/message_queue.rs:40
↓ 1 callers
Function
protect_last_page
(stack: &MemoryMap)
libgreen/src/stack.rs:95
↓ 1 callers
Function
queue
()
libgreen/src/message_queue.rs:23
↓ 1 callers
Method
queue
(&mut self)
librustuv/src/queue.rs:123
↓ 1 callers
Method
raw
Gain access to the underlying raw tty object. This function is unsafe as there is no guarantee that any safe modifications to the tty handle are actu
librustuv/src/tty.rs:93
↓ 1 callers
Method
raw
Gain access to the underlying raw pipe object. This function is unsafe as there is no guarantee that any safe modifications to the pipe handle are ac
librustuv/src/pipe.rs:115
↓ 1 callers
Method
raw
Gain access to the underlying raw tcp object. This function is unsafe as there is no guarantee that any safe modifications to the tcp handle are actu
librustuv/src/tcp.rs:116
↓ 1 callers
Method
raw
(&self)
librustuv/src/raw/connect.rs:59
↓ 1 callers
Method
read
(&mut self, buf: &mut [u8])
librustuv/src/tty.rs:101
↓ 1 callers
Method
read
(&mut self, into: &mut [u8])
librustuv/src/pipe.rs:197
↓ 1 callers
Method
read
(&mut self, into: &mut [u8])
librustuv/src/fs.rs:162
↓ 1 callers
Method
read
(&mut self, into: &mut [u8])
librustuv/src/tcp.rs:202
↓ 1 callers
Method
read_start
(&mut self, alloc_cb: uvll::uv_alloc_cb, read_cb: uvll::uv_read_cb)
librustuv/src/raw/mod.rs:175
↓ 1 callers
Method
recv_start
(&mut self, alloc: uvll::uv_alloc_cb, recv: uvll::uv_udp_recv_cb)
librustuv/src/raw/udp.rs:111
↓ 1 callers
Method
recycle
Destroy coroutine and try to reuse std::stack segment.
libgreen/src/coroutine.rs:40
↓ 1 callers
Method
remote_callback
(&mut self, f: Box<Callback + Send>)
libgreen/src/basic.rs:144
↓ 1 callers
Method
remote_work
(&mut self)
libgreen/src/basic.rs:62
↓ 1 callers
Function
run
Execute the main function in a pool of M:N schedulers. Configures the runtime according to the environment, by default using a task scheduler with th
libgreen/src/lib.rs:316
↓ 1 callers
Method
run
(&mut self)
librustuv/src/event_loop.rs:97
↓ 1 callers
Method
run
(&mut self, mode: uvll::uv_run_mode)
librustuv/src/raw/loop_.rs:41
↓ 1 callers
Method
run_sched_once
This function is run from the idle callback on the uv loop, indicating that there are no I/O events pending. When this function returns, we will fall
libgreen/src/sched.rs:278
↓ 1 callers
Method
send
(&self, task: BlockedTask)
librustuv/src/homing.rs:59
↓ 1 callers
Method
send_to_friend
Take a non-homed task we aren't allowed to run here and send it to the designated friend scheduler to execute.
libgreen/src/sched.rs:567
↓ 1 callers
Method
set_broadcast
(&mut self, on: bool)
librustuv/src/raw/udp.rs:82
↓ 1 callers
Method
set_mode
(&mut self, raw: bool)
librustuv/src/raw/tty.rs:43
↓ 1 callers
Method
set_multicast_loop
(&mut self, on: bool)
librustuv/src/raw/udp.rs:66
↓ 1 callers
Method
set_multicast_ttl
(&mut self, ttl: int)
librustuv/src/raw/udp.rs:74
↓ 1 callers
Function
set_stdio
(dst: *mut uvll::uv_stdio_container_t, io: &rtio::StdioContainer, io_l
librustuv/src/process.rs:147
↓ 1 callers
Method
set_timeout
(&mut self, dur: Option<Duration>)
librustuv/src/pipe.rs:315
↓ 1 callers
Method
set_ttl
(&mut self, ttl: int)
librustuv/src/raw/udp.rs:90
↓ 1 callers
Function
spawn_opts
See documentation for `spawn`.
libgreen/src/task.rs:94
↓ 1 callers
Method
switch_running_tasks_and_then
(self: Box<Scheduler>, cur: Box<GreenTask>,
libgreen/src/sched.rs:749
↓ 1 callers
Method
tcp_connect
(&mut self, handle: Tcp, addr: ip::SocketAddr,
librustuv/src/raw/connect.rs:36
↓ 1 callers
Method
terminate
(mut self: Box<GreenTask>)
libgreen/src/task.rs:341
↓ 1 callers
Method
terminate_current_task
Called by a running task to end execution, after which it will be recycled by the scheduler for reuse in a new task.
libgreen/src/sched.rs:801
↓ 1 callers
Method
timed_out
(&self)
librustuv/src/timeout.rs:102
↓ 1 callers
Method
to_fn
(self)
libgreen/src/sched.rs:975
↓ 1 callers
Method
uv_handle
(&self)
librustuv/src/process.rs:232
↓ 1 callers
Method
uv_loop
Gain access to the underlying event loop. This method is unsafe as there is no guarantee that further safe methods called on the `Loop` will be valid
librustuv/src/event_loop.rs:82
↓ 1 callers
Method
uv_read
(&mut self, buf: &mut [u8])
librustuv/src/tty.rs:64
↓ 1 callers
Method
uv_read
(&mut self, buf: &mut [u8])
librustuv/src/pipe.rs:117
↓ 1 callers
Method
uv_read
(&mut self, buf: &mut [u8])
librustuv/src/tcp.rs:118
↓ 1 callers
Method
uv_ref
(&self)
librustuv/src/raw/mod.rs:115
← previous
next →
101–200 of 573, ranked by callers