Commit fb0140b7 authored by neverlord's avatar neverlord

removed debug output

parent af0866e2
...@@ -135,7 +135,7 @@ ...@@ -135,7 +135,7 @@
</data> </data>
<data> <data>
<variable>ProjectExplorer.Project.Updater.EnvironmentId</variable> <variable>ProjectExplorer.Project.Updater.EnvironmentId</variable>
<value type="QString">{07fcd197-092d-45a0-8500-3be614e6ae31}</value> <value type="QString">{23902c37-f07e-47cd-bb19-c366b9f708db}</value>
</data> </data>
<data> <data>
<variable>ProjectExplorer.Project.Updater.FileVersion</variable> <variable>ProjectExplorer.Project.Updater.FileVersion</variable>
......
#include <iostream>
// for thread_specific_ptr // for thread_specific_ptr
// needed unless the new keyword "thread_local" works in GCC // needed unless the new keyword "thread_local" works in GCC
#include <boost/thread.hpp> #include <boost/thread.hpp>
...@@ -10,9 +8,6 @@ ...@@ -10,9 +8,6 @@
#include "cppa/detail/converted_thread_context.hpp" #include "cppa/detail/converted_thread_context.hpp"
using std::cout;
using std::endl;
using cppa::detail::converted_thread_context; using cppa::detail::converted_thread_context;
namespace { namespace {
...@@ -48,7 +43,6 @@ context* self() ...@@ -48,7 +43,6 @@ context* self()
context* result = s_this_context.get(); context* result = s_this_context.get();
if (result == nullptr) if (result == nullptr)
{ {
cout << "converted a native thread to an actor" << endl;
result = new converted_thread_context; result = new converted_thread_context;
result->ref(); result->ref();
get_scheduler()->register_converted_context(result); get_scheduler()->register_converted_context(result);
......
...@@ -294,7 +294,7 @@ void mailman_loop() ...@@ -294,7 +294,7 @@ void mailman_loop()
{ {
bs << out_msg; bs << out_msg;
auto size32 = static_cast<std::uint32_t>(bs.size()); auto size32 = static_cast<std::uint32_t>(bs.size());
cout << "--> " << (to_string(out_msg) + "\n"); //cout << "--> " << (to_string(out_msg) + "\n");
auto sent = ::send(peer, &size32, sizeof(size32), flags); auto sent = ::send(peer, &size32, sizeof(size32), flags);
if (sent != -1) if (sent != -1)
{ {
...@@ -303,7 +303,8 @@ cout << "--> " << (to_string(out_msg) + "\n"); ...@@ -303,7 +303,8 @@ cout << "--> " << (to_string(out_msg) + "\n");
if (sent == -1) if (sent == -1)
{ {
// peer unreachable // peer unreachable
cout << "peer " << *(sjob.target_peer) << " unreachable" << endl; //cout << "peer " << *(sjob.target_peer)
// << " unreachable" << endl;
peers.erase(*(sjob.target_peer)); peers.erase(*(sjob.target_peer));
} }
} }
...@@ -404,7 +405,7 @@ void post_office_loop(native_socket_t socket_fd, ...@@ -404,7 +405,7 @@ void post_office_loop(native_socket_t socket_fd,
read_from_socket(socket_fd, buf, buf_size); read_from_socket(socket_fd, buf, buf_size);
binary_deserializer bd(buf, buf_size); binary_deserializer bd(buf, buf_size);
meta_msg->deserialize(&msg, &bd); meta_msg->deserialize(&msg, &bd);
cout << "<-- " << (to_string(msg) + "\n"); //cout << "<-- " << (to_string(msg) + "\n");
if ( msg.content().size() == 1 if ( msg.content().size() == 1
&& msg.content().utype_info_at(0) == atom_tinfo && msg.content().utype_info_at(0) == atom_tinfo
&& *reinterpret_cast<const atom_value*>(msg.content().at(0)) && *reinterpret_cast<const atom_value*>(msg.content().at(0))
...@@ -413,8 +414,8 @@ cout << "<-- " << (to_string(msg) + "\n"); ...@@ -413,8 +414,8 @@ cout << "<-- " << (to_string(msg) + "\n");
actor_ptr sender = msg.sender(); actor_ptr sender = msg.sender();
if (sender->parent_process() == pinfo) if (sender->parent_process() == pinfo)
{ {
cout << pinfo << " ':Monitor'; actor id = " //cout << pinfo << " ':Monitor'; actor id = "
<< sender->id() << endl; // << sender->id() << endl;
// local actor? // local actor?
// this message was send from a proxy // this message was send from a proxy
sender->attach(new remote_observer(peer)); sender->attach(new remote_observer(peer));
...@@ -429,16 +430,16 @@ cout << "<-- " << (to_string(msg) + "\n"); ...@@ -429,16 +430,16 @@ cout << "<-- " << (to_string(msg) + "\n");
} }
catch (std::ios_base::failure& e) catch (std::ios_base::failure& e)
{ {
cout << "std::ios_base::failure: " << e.what() << endl; //cout << "std::ios_base::failure: " << e.what() << endl;
} }
catch (std::exception& e) catch (std::exception& e)
{ {
cout << "[" << process_information::get() << "] " //cout << "[" << process_information::get() << "] "
<< detail::to_uniform_name(typeid(e)) << ": " // << detail::to_uniform_name(typeid(e)) << ": "
<< e.what() << endl; // << e.what() << endl;
} }
cout << "[" << process_information::get() << "] ~post_office_loop" << endl; //cout << "[" << process_information::get() << "] ~post_office_loop"
//cout << "<-- post_office_loop" << endl; // << endl;
} }
struct mm_worker struct mm_worker
......
#include <string> #include <string>
#include <iostream>
#include <boost/thread.hpp> #include <boost/thread.hpp>
#include "test.hpp" #include "test.hpp"
...@@ -59,7 +58,7 @@ size_t test__remote_actor(const char* app_path, bool is_client, ...@@ -59,7 +58,7 @@ size_t test__remote_actor(const char* app_path, bool is_client,
std::string cmd; std::string cmd;
{ {
std::ostringstream oss; std::ostringstream oss;
oss << app_path << " test__remote_actor " << port;// << " &>/dev/null"; oss << app_path << " test__remote_actor " << port << " &>/dev/null";
cmd = oss.str(); cmd = oss.str();
} }
// execute client_part() in a separate process, // execute client_part() in a separate process,
...@@ -68,7 +67,6 @@ size_t test__remote_actor(const char* app_path, bool is_client, ...@@ -68,7 +67,6 @@ size_t test__remote_actor(const char* app_path, bool is_client,
await_all_others_done(); await_all_others_done();
CPPA_CHECK_EQUAL(pongs(), 5); CPPA_CHECK_EQUAL(pongs(), 5);
// wait until separate process (in sep. thread) finished execution // wait until separate process (in sep. thread) finished execution
std::cout << "child.join()" << std::endl;
child.join(); child.join();
return CPPA_TEST_RESULT; return CPPA_TEST_RESULT;
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment