Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
Actor Framework
Commits
07fbff85
Commit
07fbff85
authored
Sep 07, 2011
by
neverlord
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
member reordering
parent
334b84d6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
src/network_manager.cpp
src/network_manager.cpp
+2
-1
src/thread_pool_scheduler.cpp
src/thread_pool_scheduler.cpp
+1
-1
No files found.
src/network_manager.cpp
View file @
07fbff85
...
...
@@ -24,11 +24,12 @@ struct network_manager_impl : network_manager
typedef
util
::
single_reader_queue
<
mailman_job
>
mailman_queue_t
;
int
m_pipe
[
2
];
// m_pipe[0]: read; m_pipe[1]: write
thread
m_loop
;
// post office thread
mailman_queue_t
m_mailman_queue
;
post_office_queue_t
m_post_office_queue
;
thread
m_loop
;
// post office thread
void
start
()
/*override*/
{
if
(
pipe
(
m_pipe
)
!=
0
)
...
...
src/thread_pool_scheduler.cpp
View file @
07fbff85
...
...
@@ -30,9 +30,9 @@ struct thread_pool_scheduler::worker
job_queue
*
m_job_queue
;
scheduled_actor
*
m_job
;
worker_queue
*
m_supervisor_queue
;
thread
m_thread
;
mutex
m_mtx
;
condition_variable
m_cv
;
thread
m_thread
;
worker
(
worker_queue
*
supervisor_queue
,
job_queue
*
jq
)
:
next
(
nullptr
),
m_done
(
false
),
m_job_queue
(
jq
),
m_job
(
nullptr
)
...
...
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