MCPcopy Create free account

hub / github.com/alexcrichton/green-rs / functions

Functions573 in github.com/alexcrichton/green-rs

↓ 116 callersMethodunwrap
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 callersMethodfire_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 callersMethoduv_loop
(&self)
librustuv/src/raw/fs.rs:28
↓ 36 callersMethodsend
(&mut self, msg: SchedMessage)
libgreen/src/sched.rs:920
↓ 33 callersMethodget_data
(&mut self)
librustuv/src/raw/loop_.rs:46
↓ 27 callersMethodset_data
(&mut self, data: *mut libc::c_void)
librustuv/src/raw/loop_.rs:50
↓ 17 callersMethodpush
(&self, task: BlockedTask)
librustuv/src/queue.rs:135
↓ 17 callersMethodpush
(&mut self, value: SchedHandle)
libgreen/src/sleeper_list.rs:27
↓ 16 callersMethodclone
(&self)
libgreen/src/sleeper_list.rs:41
↓ 15 callersFunctionspawn
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 callersMethodfree
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 callersMethodstop
Stop listening for the signal previously registered in `start`.
librustuv/src/signal.rs:69
↓ 12 callersFunctionblock
(mut uv_loop: raw::Loop, f: |BlockedTask|)
librustuv/src/lib.rs:138
↓ 12 callersMethodmake_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 callersFunctionrun
(f: proc():Send)
libgreen/src/sched.rs:1046
↓ 12 callersMethodsend
(&self)
librustuv/src/raw/async.rs:31
↓ 12 callersMethodto_io_error
(&self)
librustuv/src/lib.rs:187
↓ 11 callersMethodclose_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 callersMethodget
(&self)
librustuv/src/raw/mod.rs:205
↓ 11 callersFunctionhtons
(u: u16)
librustuv/src/raw/mod.rs:297
↓ 11 callersMethodshutdown
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 callersMethodclose
(&self, _missile: &HomingMissile)
librustuv/src/access.rs:83
↓ 10 callersMethodmake_handle
(&mut self)
libgreen/src/sched.rs:888
↓ 10 callersFunctionntohs
(u: u16)
librustuv/src/raw/mod.rs:252
↓ 10 callersMethodraw
(&self)
librustuv/src/raw/loop_.rs:39
↓ 10 callersFunctionwakeup
(slot: &mut Option<BlockedTask>)
librustuv/src/lib.rs:150
↓ 8 callersMethodcode
Gain access to the raw code in this error
librustuv/src/lib.rs:183
↓ 8 callersMethoddata
(&mut self)
librustuv/src/timer.rs:133
↓ 8 callersFunctionmut_offset
(ptr: *mut T, count: int)
libgreen/src/context.rs:325
↓ 8 callersMethodpop
(&mut self)
libgreen/src/sleeper_list.rs:31
↓ 8 callersMethodstart
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 callersMethodput_with_sched
(mut self: Box<GreenTask>, sched: Box<Scheduler>)
libgreen/src/task.rs:319
↓ 7 callersMethodspawn
(&mut self, opts: TaskOpts, f: proc():Send)
libgreen/src/lib.rs:463
↓ 7 callersMethodtask
(&mut self, opts: TaskOpts, f: proc():Send)
libgreen/src/lib.rs:452
↓ 6 callersMethodclone
(&self)
librustuv/src/udp.rs:232
↓ 6 callersMethodenqueue_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 callersMethodgive_home
(&mut self, new_home: Home)
libgreen/src/task.rs:257
↓ 6 callersMethodgrant
(&'a mut self, token: uint, missile: HomingMissile)
librustuv/src/access.rs:53
↓ 6 callersFunctionpool
()
libgreen/src/sched.rs:1039
↓ 6 callersMethodtake_stack
(&mut self, min_size: uint)
libgreen/src/stack.rs:131
↓ 5 callersFunctionaddr_to_sockaddr
(addr: ip::SocketAddr, storage: &mut libc::sockaddr_storage)
librustuv/src/raw/mod.rs:294
↓ 5 callersMethodbootstrap
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 callersMethodcall
(&mut self)
librustuv/tests/idle.rs:14
↓ 5 callersMethodchange_task_context
(mut self: Box<Scheduler>, mut current_task: Box<GreenTask>,
libgreen/src/sched.rs:616
↓ 5 callersMethodgive_stack
(&mut self, stack: Stack)
libgreen/src/stack.rs:139
↓ 5 callersMethodis_closed
Test whether this access is closed, using a homing missile to prove that it's safe
librustuv/src/access.rs:105
↓ 5 callersMethodjoin
(&self, path: &str)
librustuv/tests/fs.rs:29
↓ 5 callersMethodput
(self: Box<GreenTask>)
libgreen/src/task.rs:336
↓ 5 callersMethodrun
This does not return a scheduler, as the scheduler is placed inside the task.
libgreen/src/sched.rs:230
↓ 5 callersMethodsched_id
(&self)
libgreen/src/sched.rs:881
↓ 5 callersMethodspawn_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 callersFunctionstart
(argc: int, argv: *const *const u8, event_loop_factory: fn() -> Box<EventLoop + Send>,
libgreen/src/lib.rs:294
↓ 4 callersFunctionalign_down
(sp: *mut uint)
libgreen/src/context.rs:318
↓ 4 callersFunctionbind
(s: &str, port: u16)
librustuv/tests/tcp.rs:17
↓ 4 callersFunctionexecute_nop
(f: |&mut raw::Fs, uvll::uv_fs_cb| -> UvResult<()>) -> UvResult<()> { execute(f).map(|_| {}) } impl Drop
librustuv/src/fs.rs:351
↓ 4 callersMethodput_task
(&mut self, task: Box<Task>)
libgreen/src/task.rs:325
↓ 4 callersMethodresult
(&self)
librustuv/src/raw/fs.rs:32
↓ 4 callersFunctionslice_to_uv_buf
(v: &[u8])
librustuv/src/raw/mod.rs:229
↓ 3 callersMethodaccept
(&mut self)
librustuv/src/tcp.rs:319
↓ 3 callersMethodgetsockname
(&mut self)
librustuv/src/raw/udp.rs:51
↓ 3 callersMethodinterpret_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 callersMethodis_sched
(&self)
libgreen/src/task.rs:300
↓ 3 callersMethodprocess_task
(mut self: Box<Scheduler>, cur: Box<GreenTask>, mut next: Box<GreenTas
libgreen/src/sched.rs:523
↓ 3 callersMethodresume
(&mut self)
libgreen/src/basic.rs:191
↓ 3 callersMethodresume_task_immediately
(self: Box<Scheduler>, cur: Box<GreenTask>,
libgreen/src/sched.rs:699
↓ 3 callersFunctionsched_id
()
libgreen/src/sched.rs:1052
↓ 3 callersFunctionsockaddr_to_addr
(storage: &libc::sockaddr_storage, len: uint)
librustuv/src/raw/mod.rs:250
↓ 3 callersFunctionsocket_name
(handle: *const T, f: unsafe extern fn(*const T, *mut libc::sockaddr,
librustuv/src/raw/mod.rs:234
↓ 3 callersMethodswap
(mut self: Box<GreenTask>)
libgreen/src/task.rs:330
↓ 3 callersMethodunsafe_get
(&self)
librustuv/src/access.rs:74
↓ 3 callersMethodwait
(&mut self)
librustuv/src/process.rs:250
↓ 3 callersMethodyield_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 callersMethodaccess
(&mut self)
librustuv/src/timeout.rs:109
↓ 2 callersMethodcall
(&mut self)
libgreen/src/sched.rs:929
↓ 2 callersMethodcasual_pop
(&mut self)
libgreen/src/sleeper_list.rs:35
↓ 2 callersFunctionconnect
(s: &str, port: u16)
librustuv/tests/tcp.rs:21
↓ 2 callersMethodderef_mut
(&'a mut self)
librustuv/src/access.rs:133
↓ 2 callersFunctionevent_loop
This is the only exported function from this module.
libgreen/src/basic.rs:26
↓ 2 callersMethodget_mut
Safe version which requires proof that you are on the home scheduler.
librustuv/src/access.rs:79
↓ 2 callersMethodhandle
(&self)
librustuv/src/queue.rs:131
↓ 2 callersMethodhas_active_io
(&self)
libgreen/src/basic.rs:153
↓ 2 callersMethodhas_idle
(&self)
libgreen/src/basic.rs:100
↓ 2 callersMethodlisten
(self)
librustuv/src/tcp.rs:239
↓ 2 callersFunctionnew_regs
()
libgreen/src/context.rs:158
↓ 2 callersMethodpause
(&mut self)
libgreen/src/basic.rs:188
↓ 2 callersFunctionpingpong
(po: &Receiver<int>, ch: &Sender<int>)
libgreen/src/sched.rs:1481
↓ 2 callersMethodpusher
(&self)
librustuv/src/timeout.rs:396
↓ 2 callersMethodread_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 callersMethodread_stop
(&mut self)
librustuv/src/raw/mod.rs:184
↓ 2 callersMethodrecv_stop
(&mut self)
librustuv/src/raw/udp.rs:119
↓ 2 callersFunctionreset_yield_check
(rng: &mut XorShiftRng)
libgreen/src/sched.rs:119
↓ 2 callersFunctionroundtrip
(id: int, n_tasks: int, rx: &Receiver<(int, Sender<()>)>, tx: &Sende
libgreen/src/sched.rs:1359
↓ 2 callersFunctionrun
(f: proc():Send)
libgreen/src/basic.rs:217
↓ 2 callersMethodrun_cleanup_job
(&mut self)
libgreen/src/sched.rs:883
↓ 2 callersMethodrun_task
(self: Box<Scheduler>, cur: Box<GreenTask>, next: Box<GreenTask>)
libgreen/src/sched.rs:815
↓ 2 callersMethodseek_common
(&self, pos: i64, whence: libc::c_int)
librustuv/src/fs.rs:146
↓ 2 callersMethodset_membership
(&mut self, addr: ip::IpAddr, membership: uvll::uv_membership)
librustuv/src/raw/udp.rs:55
↓ 2 callersMethodset_timeout
(&mut self, dur: Option<Duration>)
librustuv/src/tcp.rs:325
↓ 2 callersFunctionshutdown
(mut handle: U)
librustuv/src/tcp.rs:359
↓ 2 callersMethodsocket_name
(&mut self)
librustuv/src/udp.rs:69
next →1–100 of 573, ranked by callers