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
cee663cc
Commit
cee663cc
authored
Jun 17, 2019
by
gsamain
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make reifying messages own a reference of hidden cyobjects
parent
28073d9c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
Cython/Compiler/ModuleNode.py
Cython/Compiler/ModuleNode.py
+1
-0
Cython/Utility/CyObjects.cpp
Cython/Utility/CyObjects.cpp
+5
-1
No files found.
Cython/Compiler/ModuleNode.py
View file @
cee663cc
...
@@ -1242,6 +1242,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
...
@@ -1242,6 +1242,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
# Acquire a ref on CyObject, as we don't know when the message will be processed
# Acquire a ref on CyObject, as we don't know when the message will be processed
put_cypclass_op_on_narg_optarg
(
lambda
_
:
"Cy_INCREF"
,
reified_function_entry
.
type
,
Naming
.
optional_args_cname
,
code
)
put_cypclass_op_on_narg_optarg
(
lambda
_
:
"Cy_INCREF"
,
reified_function_entry
.
type
,
Naming
.
optional_args_cname
,
code
)
code
.
putln
(
"Cy_INCREF(this->%s);"
%
target_object_cname
)
code
.
putln
(
"}"
)
code
.
putln
(
"}"
)
code
.
putln
(
"int activate() {"
)
code
.
putln
(
"int activate() {"
)
code
.
putln
(
"/* Activate only if its sync object agrees to do so */"
)
code
.
putln
(
"/* Activate only if its sync object agrees to do so */"
)
...
...
Cython/Utility/CyObjects.cpp
View file @
cee663cc
...
@@ -99,7 +99,11 @@
...
@@ -99,7 +99,11 @@
ActhonMessageInterface
(
ActhonMessageInterface
(
ActhonSyncInterface
*
sync_method
,
ActhonSyncInterface
*
sync_method
,
ActhonResultInterface
*
result_object
ActhonResultInterface
*
result_object
)
:
_sync_method
(
sync_method
),
_result
(
result_object
)
{}
)
:
_sync_method
(
sync_method
),
_result
(
result_object
)
{
Cy_INCREF
(
this
->
_sync_method
);
Cy_INCREF
(
this
->
_result
);
}
};
};
struct
ActhonQueueInterface
:
CyObject
{
struct
ActhonQueueInterface
:
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