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
9fdafbf9
Commit
9fdafbf9
authored
Jun 26, 2019
by
gsamain
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Delegate Acthon utility function definitions after all prototypes
parent
822f7de6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
15 deletions
+23
-15
Cython/Utility/CyObjects.cpp
Cython/Utility/CyObjects.cpp
+23
-15
No files found.
Cython/Utility/CyObjects.cpp
View file @
9fdafbf9
...
@@ -97,14 +97,8 @@
...
@@ -97,14 +97,8 @@
ActhonSyncInterface
*
_sync_method
;
ActhonSyncInterface
*
_sync_method
;
ActhonResultInterface
*
_result
;
ActhonResultInterface
*
_result
;
virtual
int
activate
()
=
0
;
virtual
int
activate
()
=
0
;
ActhonMessageInterface
(
ActhonMessageInterface
(
ActhonSyncInterface
*
sync_method
,
ActhonSyncInterface
*
sync_method
,
ActhonResultInterface
*
result_object
);
ActhonResultInterface
*
result_object
)
:
_sync_method
(
sync_method
),
_result
(
result_object
)
{
Cy_INCREF
(
this
->
_sync_method
);
Cy_INCREF
(
this
->
_result
);
}
};
};
struct
ActhonQueueInterface
:
CyObject
{
struct
ActhonQueueInterface
:
CyObject
{
...
@@ -116,13 +110,8 @@
...
@@ -116,13 +110,8 @@
ActhonQueueInterface
*
_active_queue_class
=
NULL
;
ActhonQueueInterface
*
_active_queue_class
=
NULL
;
ActhonResultInterface
*
(
*
_active_result_class
)(
void
);
ActhonResultInterface
*
(
*
_active_result_class
)(
void
);
ActhonActivableClass
(){}
// Used in Activated classes inheritance chain (base Activated calls this, derived calls the 2 args version below)
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
))
ActhonActivableClass
(
ActhonQueueInterface
*
queue_object
,
ActhonResultInterface
*
(
*
result_constructor
)(
void
));
:
_active_queue_class
(
queue_object
),
_active_result_class
(
result_constructor
)
{
virtual
~
ActhonActivableClass
();
Cy_INCREF
(
this
->
_active_queue_class
);
}
virtual
~
ActhonActivableClass
()
{
Cy_XDECREF
(
this
->
_active_queue_class
);
}
};
};
static
inline
int
_Cy_DECREF
(
CyObject
*
op
)
{
static
inline
int
_Cy_DECREF
(
CyObject
*
op
)
{
...
@@ -413,3 +402,22 @@ int CyObject::CyObject_TRYWLOCK()
...
@@ -413,3 +402,22 @@ int CyObject::CyObject_TRYWLOCK()
{
{
return
this
->
ob_lock
.
trywlock
();
return
this
->
ob_lock
.
trywlock
();
}
}
ActhonMessageInterface
::
ActhonMessageInterface
(
ActhonSyncInterface
*
sync_method
,
ActhonResultInterface
*
result_object
)
:
_sync_method
(
sync_method
),
_result
(
result_object
)
{
Cy_INCREF
(
this
->
_sync_method
);
Cy_INCREF
(
this
->
_result
);
}
ActhonActivableClass
::
ActhonActivableClass
(
ActhonQueueInterface
*
queue_object
,
ActhonResultInterface
*
(
*
result_constructor
)(
void
))
:
_active_queue_class
(
queue_object
),
_active_result_class
(
result_constructor
)
{
Cy_INCREF
(
this
->
_active_queue_class
);
}
ActhonActivableClass
::~
ActhonActivableClass
()
{
Cy_XDECREF
(
this
->
_active_queue_class
);
}
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