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
1b7c22ac
Commit
1b7c22ac
authored
Nov 01, 2011
by
neverlord
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated gen_server and unit testing Makefile.am
parent
f5fc8ca8
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
11 deletions
+12
-11
gen_server/Makefile
gen_server/Makefile
+5
-4
gen_server/parallel_send.cpp
gen_server/parallel_send.cpp
+3
-3
gen_server/sequential_send.cpp
gen_server/sequential_send.cpp
+3
-3
unit_testing/Makefile.am
unit_testing/Makefile.am
+1
-1
No files found.
gen_server/Makefile
View file @
1b7c22ac
CXX
=
/opt/local/bin/g++-mp-4.6
CXX
=
/opt/local/bin/g++-mp-4.6
CXXFLAGS
=
-std
=
c++0x
-pedantic
-Wall
-Wextra
-I
/opt/local/include/
-I
/Users/neverlord/libcppa
-fpermissive
-O2
#CXX = /usr/bin/g++-4.6
LIBS
=
-L
/opt/local/lib
-lboost_thread-mt
-L
/Users/neverlord/libcppa/.libs/
-lcppa
CXXFLAGS
=
-std
=
c++0x
-pedantic
-Wall
-Wextra
-I
/opt/local/include/
-I
../
-fpermissive
-O2
LIBS
=
-L
../.libs/
-lcppa
-L
/opt/local/lib
-L
/usr/lib
-lboost_thread-mt
all
:
all
:
$(CXX)
$(CXXFLAGS)
$(LIBS)
-o
sequential_send sequential_send.cpp
$(CXX)
$(CXXFLAGS)
-o
sequential_send sequential_send.cpp
$(LIBS)
$(CXX)
$(CXXFLAGS)
$(LIBS)
-o
parallel_send parallel_send.cpp
$(CXX)
$(CXXFLAGS)
-o
parallel_send parallel_send.cpp
$(LIBS)
gen_server/parallel_send.cpp
View file @
1b7c22ac
...
@@ -12,9 +12,9 @@ void counter_actor()
...
@@ -12,9 +12,9 @@ void counter_actor()
long
count
=
0
;
long
count
=
0
;
receive_loop
receive_loop
(
(
on
<
atom
(
"Get"
)
>
()
>>
[
&
](
)
on
<
atom
(
"Get"
)
,
actor_ptr
>
()
>>
[
&
](
actor_ptr
client
)
{
{
reply
(
count
);
send
(
client
,
count
);
count
=
0
;
count
=
0
;
},
},
on
<
atom
(
"AddCount"
),
long
>
()
>>
[
&
](
long
val
)
on
<
atom
(
"AddCount"
),
long
>
()
>>
[
&
](
long
val
)
...
@@ -48,7 +48,7 @@ long the_test(int msg_count)
...
@@ -48,7 +48,7 @@ long the_test(int msg_count)
{
{
receive
(
rule
);
receive
(
rule
);
}
}
send
(
counter
,
atom
(
"Get"
));
send
(
counter
,
atom
(
"Get"
)
,
self
()
);
long
result
=
0
;
long
result
=
0
;
receive
receive
(
(
...
...
gen_server/sequential_send.cpp
View file @
1b7c22ac
...
@@ -12,9 +12,9 @@ void counter_actor()
...
@@ -12,9 +12,9 @@ void counter_actor()
long
count
=
0
;
long
count
=
0
;
receive_loop
receive_loop
(
(
on
<
atom
(
"Get"
)
>
()
>>
[
&
](
)
on
<
atom
(
"Get"
)
,
actor_ptr
>
()
>>
[
&
](
actor_ptr
client
)
{
{
reply
(
count
);
send
(
client
,
count
);
count
=
0
;
count
=
0
;
},
},
on
<
atom
(
"AddCount"
),
long
>
()
>>
[
&
](
long
val
)
on
<
atom
(
"AddCount"
),
long
>
()
>>
[
&
](
long
val
)
...
@@ -32,7 +32,7 @@ long the_test(int msg_count)
...
@@ -32,7 +32,7 @@ long the_test(int msg_count)
{
{
send
(
counter
,
atom
(
"AddCount"
),
val
);
send
(
counter
,
atom
(
"AddCount"
),
val
);
}
}
send
(
counter
,
atom
(
"Get"
));
send
(
counter
,
atom
(
"Get"
)
,
self
()
);
long
result
=
0
;
long
result
=
0
;
receive
receive
(
(
...
...
unit_testing/Makefile.am
View file @
1b7c22ac
...
@@ -24,4 +24,4 @@ unit_tests_DEPENDENCIES = ../.libs/libcppa.la
...
@@ -24,4 +24,4 @@ unit_tests_DEPENDENCIES = ../.libs/libcppa.la
AM_CPPFLAGS
=
-I
../
AM_CPPFLAGS
=
-I
../
unit_tests_CXXFLAGS
=
--std
=
c++0x
-pedantic
-Wall
-Wextra
unit_tests_CXXFLAGS
=
--std
=
c++0x
-pedantic
-Wall
-Wextra
AM_LDFLAGS
=
$(BOOST_LDFLAGS)
$(BOOST_THREAD_LIB)
-L
../.libs/
-lcppa
unit_tests_LDADD
=
$(BOOST_LDFLAGS)
$(BOOST_THREAD_LIB)
-L
../.libs/
-lcppa
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