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
Xavier Thompson
cython
Commits
bef3f3af
Commit
bef3f3af
authored
Jun 19, 2019
by
gsamain
Committed by
Xavier Thompson
Jun 18, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make ActhonActivableClass cleaner and safer (handles its own refcount)
parent
0e5a9292
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
Cython/Utility/CyObjects.cpp
Cython/Utility/CyObjects.cpp
+9
-2
No files found.
Cython/Utility/CyObjects.cpp
View file @
bef3f3af
...
...
@@ -112,9 +112,16 @@
};
struct
ActhonActivableClass
:
public
CyObject
{
ActhonResultInterface
*
(
*
_active_result_class
)(
void
);
ActhonQueueInterface
*
_active_queue_class
=
NULL
;
virtual
~
ActhonActivableClass
()
{}
ActhonResultInterface
*
(
*
_active_result_class
)(
void
);
ActhonActivableClass
(){}
// Used in Activated classes inheritance chain (base Activated calls this, derived calls the 2 args version below)
ActhonActivableClass
(
ActhonQueueInterface
*
queue_object
,
ActhonResultInterface
*
(
*
result_constructor
)(
void
))
:
_active_queue_class
(
queue_object
),
_active_result_class
(
result_constructor
)
{
Cy_INCREF
(
this
->
_active_queue_class
);
}
virtual
~
ActhonActivableClass
()
{
Cy_XDECREF
(
this
->
_active_queue_class
);
}
};
static
inline
int
_Cy_DECREF
(
CyObject
*
op
)
{
...
...
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