Skip to content

Conversation

@kevinAlbs
Copy link
Collaborator

This is prerequisite work for streamable ismaster.

A mongoc_interrupt_t creates a stream which can be safely interrupted from another thread while polling.

This is needed to support the isMaster Cancellation section. When this is integrated with the work of #607 the interrupt stream will be included in calls to mongoc_stream_poll, and will be interrupted when shutting down a server monitor.

Prerequisite work for streamable ismaster.
Creates a stream which can be safely interrupted
from another thread while polling.
@kevinAlbs kevinAlbs force-pushed the interrupt.CDRIVER-3535 branch from c366b5f to 4c8935b Compare May 12, 2020 21:25
: "0x%08X", exception_code);
? "(access violation)"
: "0x%08X",
exception_code);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-format

@kevinAlbs kevinAlbs requested a review from bazile-clyde May 12, 2020 21:54
@kevinAlbs kevinAlbs requested a review from sgolemon May 13, 2020 16:39
@kevinAlbs
Copy link
Collaborator Author

Updated. Thanks for the review @sgolemon!

Copy link
Contributor

@bazile-clyde bazile-clyde left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I left a few comments but otherwise, LGTM.

@kevinAlbs
Copy link
Collaborator Author

Pushed in 40f8e03

@kevinAlbs kevinAlbs closed this May 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants