Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Aug 11, 2020. It is now read-only.

Commit 6d266fa

Browse filesBrowse files
committed
variable name change
1 parent 3766648 commit 6d266fa
Copy full SHA for 6d266fa

File tree

Expand file treeCollapse file tree

3 files changed

+9
-8
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+9
-8
lines changed

‎src/sdk/network/connection.cc

Copy file name to clipboardExpand all lines: src/sdk/network/connection.cc
+3-2Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,9 @@ Connection::Connection(const SharedLinkStrandRef &strand,
3030
_shared_strand(strand),
3131
_path(path) {}
3232

33-
void Connection::post_in_strand(std::function<void()> &&callback, bool locked) {
34-
if (locked) {
33+
void Connection::post_in_strand(std::function<void()> &&callback,
34+
bool already_locked) {
35+
if (already_locked) {
3536
if (_shared_strand != nullptr) {
3637
return _shared_strand->post(std::move(callback));
3738
}

‎src/sdk/network/connection.h

Copy file name to clipboardExpand all lines: src/sdk/network/connection.h
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class Connection : public SharedStrandPtr<Connection> {
5555

5656
public:
5757
void post_in_strand(std::function<void()> &&callback,
58-
bool locked = false) override;
58+
bool already_locked = false) override;
5959

6060
std::function<void(MessageRef)> on_read_message;
6161

‎src/sdk/util/enable_shared.h

Copy file name to clipboardExpand all lines: src/sdk/util/enable_shared.h
+5-5Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,25 +63,25 @@ class SharedStrandPtr : public SharedDestroyable<T> {
6363
private:
6464
protected:
6565
virtual void post_in_strand(std::function<void()> &&,
66-
bool locked = false) = 0;
66+
bool already_locked = false) = 0;
6767

6868
public:
6969
void destroy_in_strand(shared_ptr_<SharedStrandPtr<T>> &&destroyable,
70-
bool locked = false) {
70+
bool already_locked = false) {
7171
if (destroyable->is_destroyed()) {
7272
return;
7373
}
7474
post_in_strand(
7575
[this, keep_ptr = std::move(destroyable)]() { this->destroy(); },
76-
locked);
76+
already_locked);
7777
}
7878
void destroy_in_strand(shared_ptr_<SharedStrandPtr<T>> &destroyable,
79-
bool locked = false) {
79+
bool already_locked = false) {
8080
if (destroyable->is_destroyed()) {
8181
return;
8282
}
8383
post_in_strand([this, keep_ptr = destroyable]() { this->destroy(); },
84-
locked);
84+
already_locked);
8585
}
8686
};
8787
} // namespace dsa

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.