Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gevent
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
gevent
Commits
c2bb6504
Commit
c2bb6504
authored
Jun 22, 2020
by
Jason Madden
Committed by
GitHub
Jun 22, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1650 from gevent/issue1648
Set EV_USE_REALTIME, EV_USE_MONOTONIC and EV_USE_FLOOR.
parents
d817b3c3
e44f9571
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
2 deletions
+18
-2
_setuplibev.py
_setuplibev.py
+11
-1
docs/changes/issue1648.feature
docs/changes/issue1648.feature
+6
-0
scripts/releases/make-manylinux
scripts/releases/make-manylinux
+1
-1
No files found.
_setuplibev.py
View file @
c2bb6504
...
...
@@ -88,7 +88,17 @@ def build_extension():
# libev watchers that we don't use currently:
(
'EV_CLEANUP_ENABLE'
,
'0'
),
(
'EV_EMBED_ENABLE'
,
'0'
),
(
"EV_PERIODIC_ENABLE"
,
'0'
)
(
"EV_PERIODIC_ENABLE"
,
'0'
),
# Time keeping. If possible, use the realtime and/or monotonic
# clocks. On Linux, this can reduce the number of observable syscalls.
# On older linux, such as the version in manylinux2010, this requires
# linking to lib rt. We handle this in make-manylinux. Newer versions
# generally don't need that.
(
"EV_USE_REALTIME"
,
"1"
),
(
"EV_USE_MONOTONIC"
,
"1"
),
# use the builtin floor() function. Every modern platform should
# have this, right?
(
"EV_USE_FLOOR"
,
"1"
),
]
CORE
.
configure
=
configure_libev
if
os
.
environ
.
get
(
'GEVENTSETUP_EV_VERIFY'
)
is
not
None
:
...
...
docs/changes/issue1648.feature
0 → 100644
View file @
c2bb6504
The
embedded
libev
is
now
asked
to
detect
the
availability
of
``clock_gettime``
and
use
the
realtime
and/or
monotonic
clocks,
if
they
are
available.
On
Linux,
this
c
an
reduce the number of system calls libev makes.
Originally
provided
by
Josh
Snyder.
scripts/releases/make-manylinux
View file @
c2bb6504
...
...
@@ -34,7 +34,7 @@ export CCACHE_DIR="/ccache"
# Disable some warnings produced by libev especially and also some Cython generated code.
# Note that changing the value of these variables invalidates configure caches
export
CFLAGS
=
"-Ofast -pipe -Wno-strict-aliasing -Wno-comment -Wno-unused-value -Wno-unused-but-set-variable -Wno-sign-compare -Wno-parentheses -Wno-unused-function -Wno-tautological-compare -Wno-strict-prototypes"
export
LDFLAGS
=
"-lrt"
# Needed for clock_gettime libc support on this version.
if
[
-d
/gevent
-a
-d
/opt/python
]
;
then
# Running inside docker
...
...
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