Skip to content

[fix][cpp] Use weak ptr avoid circular references. - #17481

Merged
RobertIndie merged 3 commits into
apache:masterfrom
shibd:fix_multi_timer
Sep 22, 2022
Merged

[fix][cpp] Use weak ptr avoid circular references.#17481
RobertIndie merged 3 commits into
apache:masterfrom
shibd:fix_multi_timer

Conversation

@shibd

@shibd shibd commented Sep 6, 2022

Copy link
Copy Markdown
Member

Motivation

Capturing shared ptr in the timer function will cause a circular reference.

Modifications

  • Use weak ptr instead shared ptr.

Documentation

  • doc-not-needed

@github-actions github-actions Bot added the doc-not-needed Your PR changes do not impact docs label Sep 6, 2022
Comment thread pulsar-client-cpp/lib/MultiTopicsConsumerImpl.cc Outdated
@shibd
shibd requested a review from BewareMyPower September 13, 2022 01:52
@shibd shibd closed this Sep 14, 2022
@shibd shibd reopened this Sep 14, 2022
@BewareMyPower

Copy link
Copy Markdown
Contributor

Please rebase to master to have some CI fixes.

@RobertIndie
RobertIndie merged commit 141981b into apache:master Sep 22, 2022
congbobo184 pushed a commit that referenced this pull request Nov 14, 2022
### Motivation

Capturing shared ptr in the timer function will cause a circular reference.

### Modifications

- Use weak ptr instead shared ptr.

(cherry picked from commit 141981b)
@congbobo184 congbobo184 added the cherry-picked/branch-2.9 Archived: 2.9 is end of life label Nov 14, 2022
congbobo184 pushed a commit that referenced this pull request Dec 7, 2022
### Motivation

Capturing shared ptr in the timer function will cause a circular reference.

### Modifications

- Use weak ptr instead shared ptr.

(cherry picked from commit 141981b)
nicoloboschi pushed a commit to datastax/pulsar that referenced this pull request Jan 10, 2023
### Motivation

Capturing shared ptr in the timer function will cause a circular reference.

### Modifications

- Use weak ptr instead shared ptr.

(cherry picked from commit 141981b)
(cherry picked from commit 6bbaf16)
nicoloboschi pushed a commit to datastax/pulsar that referenced this pull request Jan 11, 2023
### Motivation

Capturing shared ptr in the timer function will cause a circular reference.

### Modifications

- Use weak ptr instead shared ptr.

(cherry picked from commit 141981b)
(cherry picked from commit 6bbaf16)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cherry-picked/branch-2.9 Archived: 2.9 is end of life cherry-picked/branch-2.10 doc-not-needed Your PR changes do not impact docs release/2.8.5 release/2.9.4 release/2.10.3 type/bug The PR fixed a bug or issue reported a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants