Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
tarantool-module
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
core
tarantool-module
Commits
b7769c50
Commit
b7769c50
authored
1 year ago
by
Georgy Moshkin
Browse files
Options
Downloads
Patches
Plain Diff
chore: cleanup module imports and declarations in fiber.rs
parent
9ddf4ca5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!444
Gmoshkin/fix fiber detach
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tarantool/src/fiber.rs
+21
-23
21 additions, 23 deletions
tarantool/src/fiber.rs
with
21 additions
and
23 deletions
tarantool/src/fiber.rs
+
21
−
23
View file @
b7769c50
...
...
@@ -10,6 +10,26 @@
//! - [Threads, fibers and yields](https://www.tarantool.io/en/doc/latest/book/box/atomic/#threads-fibers-and-yields)
//! - [Lua reference: Module fiber](https://www.tarantool.io/en/doc/latest/reference/reference_lua/fiber/)
//! - [C API reference: Module fiber](https://www.tarantool.io/en/doc/latest/dev_guide/reference_capi/fiber/)
use
crate
::
error
::{
TarantoolError
,
TarantoolErrorCode
};
use
crate
::
ffi
::
has_fiber_id
;
use
crate
::
ffi
::
tarantool
::
fiber_sleep
;
use
crate
::
ffi
::{
lua
,
tarantool
as
ffi
};
use
crate
::
time
::
Instant
;
use
crate
::
tlua
::{
self
as
tlua
,
AsLua
};
use
crate
::
Result
;
use
crate
::{
c_ptr
,
set_error
};
use
::
va_list
::
VaList
;
pub
use
channel
::
Channel
;
pub
use
channel
::
RecvError
;
pub
use
channel
::
RecvTimeout
;
pub
use
channel
::
SendError
;
pub
use
channel
::
SendTimeout
;
pub
use
channel
::
TryRecvError
;
pub
use
channel
::
TrySendError
;
pub
use
csw
::
check_yield
;
pub
use
csw
::
YieldResult
;
pub
use
mutex
::
Mutex
;
pub
use
r
#
async
::
block_on
;
use
std
::
cell
::
UnsafeCell
;
use
std
::
ffi
::
CString
;
use
std
::
future
::
Future
;
...
...
@@ -17,34 +37,12 @@ use std::marker::PhantomData;
use
std
::
os
::
raw
::
c_void
;
use
std
::
ptr
::
NonNull
;
use
std
::
time
::
Duration
;
use
crate
::
time
::
Instant
;
use
crate
::
tlua
::{
self
as
tlua
,
AsLua
};
use
::
va_list
::
VaList
;
use
tlua
::
unwrap_or
;
use
crate
::
error
::{
TarantoolError
,
TarantoolErrorCode
};
use
crate
::
ffi
::
has_fiber_id
;
use
crate
::
ffi
::{
lua
,
tarantool
as
ffi
};
use
crate
::
Result
;
use
crate
::{
c_ptr
,
set_error
};
pub
mod
r
#
async
;
pub
mod
channel
;
pub
use
channel
::{
Channel
,
RecvError
,
RecvTimeout
,
SendError
,
SendTimeout
,
TryRecvError
,
TrySendError
,
};
pub
mod
mutex
;
use
crate
::
ffi
::
tarantool
::
fiber_sleep
;
pub
use
mutex
::
Mutex
;
pub
use
r
#
async
::
block_on
;
mod
csw
;
pub
use
csw
::
check_yield
;
pub
use
csw
::
YieldResult
;
pub
mod
mutex
;
/// Type alias for a fiber id.
pub
type
FiberId
=
u64
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment