Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
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
Gwenaël Samain
cython
Commits
0e3b61fe
Commit
0e3b61fe
authored
Jun 27, 2019
by
gsamain
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add is_empty to queue interface
parent
99e489d6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
Cython/Compiler/Builtin.py
Cython/Compiler/Builtin.py
+8
-0
Cython/Utility/CyObjects.cpp
Cython/Utility/CyObjects.cpp
+1
-0
No files found.
Cython/Compiler/Builtin.py
View file @
0e3b61fe
...
...
@@ -552,6 +552,14 @@ def inject_acthon_interfaces(self):
queue_activate_entry
.
is_variable
=
1
queue_scope
.
var_entries
.
append
(
queue_activate_entry
)
queue_is_empty_type
=
PyrexTypes
.
CFuncType
(
PyrexTypes
.
c_bint_type
,
[],
nogil
=
1
)
queue_is_empty_type
.
is_const_method
=
1
queue_is_empty_entry
=
queue_scope
.
declare
(
"is_empty"
,
"is_empty"
,
queue_activate_type
,
None
,
"extern"
)
queue_is_empty_entry
.
is_cfunction
=
1
queue_is_empty_entry
.
is_variable
=
1
queue_scope
.
var_entries
.
append
(
queue_is_empty_entry
)
# cdef cypclass ActivableClass:
# ResultInterface (*_active_result_class)()
# QueueInterface _active_queue_class
...
...
Cython/Utility/CyObjects.cpp
View file @
0e3b61fe
...
...
@@ -104,6 +104,7 @@
struct
ActhonQueueInterface
:
public
CyObject
{
virtual
void
push
(
ActhonMessageInterface
*
message
)
=
0
;
virtual
int
activate
()
=
0
;
virtual
int
is_empty
()
const
=
0
;
};
struct
ActhonActivableClass
:
public
CyObject
{
...
...
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