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
↓ 116 callers
Method
unwrap
Unwrap this raw pointer, cancelling its deallocation. This method is unsafe because it will leak the returned pointer.
librustuv/src/raw/mod.rs:210
↓ 52 callers
Method
fire_homing_missile
Fires a single homing missile, returning another missile targeted back at the original home of this task. In other words, this function will move the
librustuv/src/homing.rs:103
↓ 42 callers
Method
uv_loop
(&self)
librustuv/src/raw/fs.rs:28
↓ 36 callers
Method
send
(&mut self, msg: SchedMessage)
libgreen/src/sched.rs:920
↓ 33 callers
Method
get_data
(&mut self)
librustuv/src/raw/loop_.rs:46
↓ 27 callers
Method
set_data
(&mut self, data: *mut libc::c_void)
librustuv/src/raw/loop_.rs:50
↓ 17 callers
Method
push
(&self, task: BlockedTask)
librustuv/src/queue.rs:135
↓ 17 callers
Method
push
(&mut self, value: SchedHandle)
libgreen/src/sleeper_list.rs:27
↓ 16 callers
Method
clone
(&self)
libgreen/src/sleeper_list.rs:41
↓ 15 callers
Function
spawn
Spawn a new green task, assuming the current task is a green task. # Failure This function will fail if the current task is not already a green task
libgreen/src/task.rs:89
↓ 13 callers
Method
free
Deallocate this handle. This is unsafe as there is no guarantee that no one else is using this handle currently.
librustuv/src/raw/loop_.rs:70
↓ 13 callers
Method
stop
Stop listening for the signal previously registered in `start`.
librustuv/src/signal.rs:69
↓ 12 callers
Function
block
(mut uv_loop: raw::Loop, f: |BlockedTask|)
librustuv/src/lib.rs:138
↓ 12 callers
Method
make_handle
Create a new handle to this event loop. This handle can be used to return the current task home, assuming that it is a green task.
librustuv/src/event_loop.rs:88
↓ 12 callers
Function
run
(f: proc():Send)
libgreen/src/sched.rs:1046
↓ 12 callers
Method
send
(&self)
librustuv/src/raw/async.rs:31
↓ 12 callers
Method
to_io_error
(&self)
librustuv/src/lib.rs:187
↓ 11 callers
Method
close_and_free
Invoke uv_close, and then free the handle when the close operation is done. This is unsafe for the same reasons as `close` and `free`.
librustuv/src/raw/mod.rs:108
↓ 11 callers
Method
get
(&self)
librustuv/src/raw/mod.rs:205
↓ 11 callers
Function
htons
(u: u16)
librustuv/src/raw/mod.rs:297
↓ 11 callers
Method
shutdown
Consumes the pool of schedulers, waiting for all tasks to exit and all schedulers to shut down. This function is required to be called in order to dr
libgreen/src/lib.rs:518
↓ 10 callers
Method
close
(&self, _missile: &HomingMissile)
librustuv/src/access.rs:83
↓ 10 callers
Method
make_handle
(&mut self)
libgreen/src/sched.rs:888
↓ 10 callers
Function
ntohs
(u: u16)
librustuv/src/raw/mod.rs:252
↓ 10 callers
Method
raw
(&self)
librustuv/src/raw/loop_.rs:39
↓ 10 callers
Function
wakeup
(slot: &mut Option<BlockedTask>)
librustuv/src/lib.rs:150
↓ 8 callers
Method
code
Gain access to the raw code in this error
librustuv/src/lib.rs:183
↓ 8 callers
Method
data
(&mut self)
librustuv/src/timer.rs:133
↓ 8 callers
Function
mut_offset
(ptr: *mut T, count: int)
libgreen/src/context.rs:325
↓ 8 callers
Method
pop
(&mut self)
libgreen/src/sleeper_list.rs:31
↓ 8 callers
Method
start
Attempts to start listening for the signal `signal`. When the process receives the specified signal, the callback `cb` will be invoked on the event l
librustuv/src/signal.rs:53
↓ 7 callers
Method
put_with_sched
(mut self: Box<GreenTask>, sched: Box<Scheduler>)
libgreen/src/task.rs:319
↓ 7 callers
Method
spawn
(&mut self, opts: TaskOpts, f: proc():Send)
libgreen/src/lib.rs:463
↓ 7 callers
Method
task
(&mut self, opts: TaskOpts, f: proc():Send)
libgreen/src/lib.rs:452
↓ 6 callers
Method
clone
(&self)
librustuv/src/udp.rs:232
↓ 6 callers
Method
enqueue_task
Schedule a task to be executed later. Pushes the task onto the work stealing queue and tells the event loop to run it later. Always use this instead
libgreen/src/sched.rs:584
↓ 6 callers
Method
give_home
(&mut self, new_home: Home)
libgreen/src/task.rs:257
↓ 6 callers
Method
grant
(&'a mut self, token: uint, missile: HomingMissile)
librustuv/src/access.rs:53
↓ 6 callers
Function
pool
()
libgreen/src/sched.rs:1039
↓ 6 callers
Method
take_stack
(&mut self, min_size: uint)
libgreen/src/stack.rs:131
↓ 5 callers
Function
addr_to_sockaddr
(addr: ip::SocketAddr, storage: &mut libc::sockaddr_storage)
librustuv/src/raw/mod.rs:294
↓ 5 callers
Method
bootstrap
Take a main task to run, and a scheduler to run it in. Create a scheduler task and bootstrap into it.
libgreen/src/sched.rs:186
↓ 5 callers
Method
call
(&mut self)
librustuv/tests/idle.rs:14
↓ 5 callers
Method
change_task_context
(mut self: Box<Scheduler>, mut current_task: Box<GreenTask>,
libgreen/src/sched.rs:616
↓ 5 callers
Method
give_stack
(&mut self, stack: Stack)
libgreen/src/stack.rs:139
↓ 5 callers
Method
is_closed
Test whether this access is closed, using a homing missile to prove that it's safe
librustuv/src/access.rs:105
↓ 5 callers
Method
join
(&self, path: &str)
librustuv/tests/fs.rs:29
↓ 5 callers
Method
put
(self: Box<GreenTask>)
libgreen/src/task.rs:336
↓ 5 callers
Method
run
This does not return a scheduler, as the scheduler is placed inside the task.
libgreen/src/sched.rs:230
↓ 5 callers
Method
sched_id
(&self)
libgreen/src/sched.rs:881
↓ 5 callers
Method
spawn_sched
Spawns a new scheduler into this M:N pool. A handle is returned to the scheduler for use. The scheduler will not exit as long as this handle is active
libgreen/src/lib.rs:483
↓ 5 callers
Function
start
(argc: int, argv: *const *const u8, event_loop_factory: fn() -> Box<EventLoop + Send>,
libgreen/src/lib.rs:294
↓ 4 callers
Function
align_down
(sp: *mut uint)
libgreen/src/context.rs:318
↓ 4 callers
Function
bind
(s: &str, port: u16)
librustuv/tests/tcp.rs:17
↓ 4 callers
Function
execute_nop
(f: |&mut raw::Fs, uvll::uv_fs_cb| -> UvResult<()>) -> UvResult<()> { execute(f).map(|_| {}) } impl Drop
librustuv/src/fs.rs:351
↓ 4 callers
Method
put_task
(&mut self, task: Box<Task>)
libgreen/src/task.rs:325
↓ 4 callers
Method
result
(&self)
librustuv/src/raw/fs.rs:32
↓ 4 callers
Function
slice_to_uv_buf
(v: &[u8])
librustuv/src/raw/mod.rs:229
↓ 3 callers
Method
accept
(&mut self)
librustuv/src/tcp.rs:319
↓ 3 callers
Method
getsockname
(&mut self)
librustuv/src/raw/udp.rs:51
↓ 3 callers
Method
interpret_message_queue
This function returns None if the scheduler is "used", or it returns the still-available scheduler. At this point all message-handling will count as a
libgreen/src/sched.rs:356
↓ 3 callers
Method
is_sched
(&self)
libgreen/src/task.rs:300
↓ 3 callers
Method
process_task
(mut self: Box<Scheduler>, cur: Box<GreenTask>, mut next: Box<GreenTas
libgreen/src/sched.rs:523
↓ 3 callers
Method
resume
(&mut self)
libgreen/src/basic.rs:191
↓ 3 callers
Method
resume_task_immediately
(self: Box<Scheduler>, cur: Box<GreenTask>,
libgreen/src/sched.rs:699
↓ 3 callers
Function
sched_id
()
libgreen/src/sched.rs:1052
↓ 3 callers
Function
sockaddr_to_addr
(storage: &libc::sockaddr_storage, len: uint)
librustuv/src/raw/mod.rs:250
↓ 3 callers
Function
socket_name
(handle: *const T, f: unsafe extern fn(*const T, *mut libc::sockaddr,
librustuv/src/raw/mod.rs:234
↓ 3 callers
Method
swap
(mut self: Box<GreenTask>)
libgreen/src/task.rs:330
↓ 3 callers
Method
unsafe_get
(&self)
librustuv/src/access.rs:74
↓ 3 callers
Method
wait
(&mut self)
librustuv/src/process.rs:250
↓ 3 callers
Method
yield_now
Yield control to the scheduler, executing another task. This is guaranteed to introduce some amount of randomness to the scheduler. Currently the rand
libgreen/src/sched.rs:833
↓ 2 callers
Method
access
(&mut self)
librustuv/src/timeout.rs:109
↓ 2 callers
Method
call
(&mut self)
libgreen/src/sched.rs:929
↓ 2 callers
Method
casual_pop
(&mut self)
libgreen/src/sleeper_list.rs:35
↓ 2 callers
Function
connect
(s: &str, port: u16)
librustuv/tests/tcp.rs:21
↓ 2 callers
Method
deref_mut
(&'a mut self)
librustuv/src/access.rs:133
↓ 2 callers
Function
event_loop
This is the only exported function from this module.
libgreen/src/basic.rs:26
↓ 2 callers
Method
get_mut
Safe version which requires proof that you are on the home scheduler.
librustuv/src/access.rs:79
↓ 2 callers
Method
handle
(&self)
librustuv/src/queue.rs:131
↓ 2 callers
Method
has_active_io
(&self)
libgreen/src/basic.rs:153
↓ 2 callers
Method
has_idle
(&self)
libgreen/src/basic.rs:100
↓ 2 callers
Method
listen
(self)
librustuv/src/tcp.rs:239
↓ 2 callers
Function
new_regs
()
libgreen/src/context.rs:158
↓ 2 callers
Method
pause
(&mut self)
libgreen/src/basic.rs:188
↓ 2 callers
Function
pingpong
(po: &Receiver<int>, ch: &Sender<int>)
libgreen/src/sched.rs:1481
↓ 2 callers
Method
pusher
(&self)
librustuv/src/timeout.rs:396
↓ 2 callers
Method
read_at
Read some bytes at `pos`. If `pos` is -1, then the data will be read from the current position in the file.
librustuv/src/fs.rs:118
↓ 2 callers
Method
read_stop
(&mut self)
librustuv/src/raw/mod.rs:184
↓ 2 callers
Method
recv_stop
(&mut self)
librustuv/src/raw/udp.rs:119
↓ 2 callers
Function
reset_yield_check
(rng: &mut XorShiftRng)
libgreen/src/sched.rs:119
↓ 2 callers
Function
roundtrip
(id: int, n_tasks: int, rx: &Receiver<(int, Sender<()>)>, tx: &Sende
libgreen/src/sched.rs:1359
↓ 2 callers
Function
run
(f: proc():Send)
libgreen/src/basic.rs:217
↓ 2 callers
Method
run_cleanup_job
(&mut self)
libgreen/src/sched.rs:883
↓ 2 callers
Method
run_task
(self: Box<Scheduler>, cur: Box<GreenTask>, next: Box<GreenTask>)
libgreen/src/sched.rs:815
↓ 2 callers
Method
seek_common
(&self, pos: i64, whence: libc::c_int)
librustuv/src/fs.rs:146
↓ 2 callers
Method
set_membership
(&mut self, addr: ip::IpAddr, membership: uvll::uv_membership)
librustuv/src/raw/udp.rs:55
↓ 2 callers
Method
set_timeout
(&mut self, dur: Option<Duration>)
librustuv/src/tcp.rs:325
↓ 2 callers
Function
shutdown
(mut handle: U)
librustuv/src/tcp.rs:359
↓ 2 callers
Method
socket_name
(&mut self)
librustuv/src/udp.rs:69
next →
1–100 of 573, ranked by callers