Skip to content

Commit 4c04d88

Browse files
committed
cosmetic changes
1 parent 2881268 commit 4c04d88

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

async-call-helper/async-call-helper.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ class async_call_helper
3131
: public IFaces...
3232
{
3333
public:
34-
using ThisType = typename async_call_helper<Caller, IFaces...>;
34+
using ThisType = async_call_helper<Caller, IFaces...>;
3535
// using IFaces::IFaces...;
36-
36+
~async_call_helper() = default;
37+
protected:
3738
async_call_helper()
3839
: IFaces()...
3940
{
4041
lifetime_ref = std::make_shared<auto_ref_holder>(*this);
4142
}
42-
~async_call_helper() = default;
4343

4444
void* get_context() const noexcept
4545
{

async-call-helper/external_c_lib.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
#include <functional>
55
#include <thread>
66

7-
namespace c {
7+
namespace {
88
typedef void (*long_async_function_cb)(void*, int);
99

10-
static void long_async_function(void* context,
10+
static void c_long_async_function(void* context,
1111
long_async_function_cb cb,
1212
int in_param,
1313
int sleep_msec = 1000) {

async-call-helper/safe-service.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ void safe_service::execute() {
3030

3131
using namespace std::placeholders;
3232
auto context_bind = get_context<int>(std::bind(&safe_service::response, this, _1));
33-
c::long_async_function(context_bind.context, context_bind.callback, *param * 3);
33+
c_long_async_function(context_bind.context, context_bind.callback, *param * 3);
3434

3535
cpp::long_async_function(context_bind, *param);
3636
}

async-call-helper/unsafe-service.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ static inline void response_cb(void* context, int out_param) {
1818
}
1919

2020
void unsafe_service::execute() {
21-
c::long_async_function((void*)this, response_cb, *param);
21+
c_long_async_function((void*)this, response_cb, *param);
2222
}
2323

2424
void unsafe_service::response(int out_param)

0 commit comments

Comments
 (0)