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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
4adb638b
Commit
4adb638b
authored
Jun 17, 2019
by
gsamain
Committed by
Xavier Thompson
Aug 17, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make reifying messages own a reference of hidden cyobjects
parent
bbd74b14
Changes
2
Show 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 @
4adb638b
...
...
@@ -1316,6 +1316,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
# 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
)
code
.
putln
(
"Cy_INCREF(this->%s);"
%
target_object_cname
)
code
.
putln
(
"}"
)
code
.
putln
(
"int activate() {"
)
code
.
putln
(
"/* Activate only if its sync object agrees to do so */"
)
...
...
Cython/Utility/CyObjects.cpp
View file @
4adb638b
...
...
@@ -99,7 +99,11 @@
ActhonMessageInterface
(
ActhonSyncInterface
*
sync_method
,
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
{
...
...
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