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
30f0ba09
Commit
30f0ba09
authored
Jun 13, 2013
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed Linux-specific middleman impl
parent
7a9e3312
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
src/middleman_event_handler_epoll.cpp
src/middleman_event_handler_epoll.cpp
+10
-2
No files found.
src/middleman_event_handler_epoll.cpp
View file @
30f0ba09
...
@@ -27,7 +27,13 @@
...
@@ -27,7 +27,13 @@
* along with libcppa. If not, see <http://www.gnu.org/licenses/>. *
* along with libcppa. If not, see <http://www.gnu.org/licenses/>. *
\******************************************************************************/
\******************************************************************************/
#include <ios>
#include <string>
#include <vector>
#include <string.h>
#include <sys/epoll.h>
#include <sys/epoll.h>
#include "cppa/network/middleman_event_handler.hpp"
#include "cppa/network/middleman_event_handler.hpp"
namespace
cppa
{
namespace
network
{
namespace
cppa
{
namespace
network
{
...
@@ -44,8 +50,10 @@ class middleman_event_handler_impl : public middleman_event_handler {
...
@@ -44,8 +50,10 @@ class middleman_event_handler_impl : public middleman_event_handler {
void
init
()
{
void
init
()
{
m_epollfd
=
epoll_create1
(
EPOLL_CLOEXEC
);
m_epollfd
=
epoll_create1
(
EPOLL_CLOEXEC
);
if
(
m_epollfd
==
-
1
)
throw
ios_base
::
failure
(
string
(
"epoll_create1: "
)
if
(
m_epollfd
==
-
1
)
{
+
strerror
(
errno
));
throw
std
::
ios_base
::
failure
(
std
::
string
(
"epoll_create1: "
)
+
strerror
(
errno
));
}
// handle at most 64 events at a time
// handle at most 64 events at a time
m_epoll_events
.
resize
(
64
);
m_epoll_events
.
resize
(
64
);
}
}
...
...
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