Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
pygolang
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
pygolang
Commits
8399ff2d
Commit
8399ff2d
authored
Nov 06, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
time.pyx: Move misc nogil functions into under `cdef nogil` block
Just cosmetics - easier to oversee the code.
parent
873cf8aa
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
11 deletions
+13
-11
golang/_time.pyx
golang/_time.pyx
+13
-11
No files found.
golang/_time.pyx
View file @
8399ff2d
...
...
@@ -244,16 +244,18 @@ pymillisecond = millisecond
pyminute
=
minute
pyhour
=
hour
cdef
double
now_pyexc
()
nogil
except
+
topyexc
:
cdef
nogil
:
double
now_pyexc
()
except
+
topyexc
:
return
now
()
cdef
void
sleep_pyexc
(
double
dt
)
nogil
except
+
topyexc
:
void
sleep_pyexc
(
double
dt
)
except
+
topyexc
:
sleep
(
dt
)
cdef
void
_Ticker_stop_pyexc
(
PyTicker
t
)
nogil
except
+
topyexc
:
void
_Ticker_stop_pyexc
(
PyTicker
t
)
except
+
topyexc
:
t
.
_stop
()
cdef
bint
_Timer_stop_pyexc
(
PyTimer
t
)
nogil
except
+
topyexc
:
bint
_Timer_stop_pyexc
(
PyTimer
t
)
except
+
topyexc
:
return
t
.
_stop
()
cdef
void
_Timer_reset_pyexc
(
PyTimer
t
,
double
dt
)
nogil
except
+
topyexc
:
void
_Timer_reset_pyexc
(
PyTimer
t
,
double
dt
)
except
+
topyexc
:
t
.
_reset
(
dt
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment