-
Notifications
You must be signed in to change notification settings - Fork 1.6k
<syncstream>: implement basic_syncbuf and basic_osyncstream #1564
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 59 commits
Commits
Show all changes
62 commits
Select commit
Hold shift + click to select a range
440613d
Implementation proposal of P0053R7 basic_syncbuf
d8e0433
Updates to syncbuf implementation, syncstream header to build system
71c6504
Apply suggestions from code review
a41104f
clang-format
4f469e8
Remove redefinition of default parameter occurrence
215307c
Remove a mistaken definition
6afbbc7
Move global variables to syncstream.cpp
56bf7d6
Update syncstream.cpp with static variables
1f71232
Apply code review and changes to global mutex design
146d5de
Remove unnecessary guards
5f15919
Update included headers
31169f6
clang-format
103e07e
Remove unnecessary header, adjust variable names
9e05bb2
Add basic_osyncstream class
7889ef0
Apply code review changes
df7aea1
Add custom CRT Allocator
fa3c112
Apply code review changes
2a3ab4e
Adjust noexcept flag and throw on null allocation
cd29990
Implement intermediate class for basic_syncbuf
472b800
Implement osyncstream manipulators
5bdb646
Apply code review changes
f7aa45d
Properly move assign equal _No_propagate_allocators
0a1ce0e
Ensure dealing _Unfancy pointers with streambuf
12ac2f9
Add tests to basic_syncbuf and feature test macro
acbf0bf
organize include headers
95e50c4
Fix tests
e355673
Fix tests again
5a085af
Add the new test to the list
e4bbea1
Add tests for basic_osyncstream
3554be3
Add osyncstream manipulators tests and enable a disabled test
3cccfc3
clang-format
f873fdd
Fix typo
1f7e98d
Add syncstream header to header-units
2452024
Guard functions that require runtime information checking
35918c5
Fix bugs
d1ffbe6
Apply some code review changes
41b9540
Merge branch 'main' into syncstream
StephanTLavavej 430944c
Code review feedback.
StephanTLavavej c2e3705
change flush_emit to follow the standard wording
8101d4b
Workaround EHsc compiler flag with throwing extern C
5b13b44
clang-format
bc13608
Inline _Acquire_mutex_for_instance
19a747c
Disable header units test coverage.
StephanTLavavej e7fc1c9
Use _Xbad_alloc() to throw.
StephanTLavavej 7f70310
Don't use _CRTIMP2 for import-lib functions.
StephanTLavavej 019e25f
Rename _Lookup_map and _Lookup_mutex.
StephanTLavavej 37fab1e
Use size_t for refcounts instead of uint64_t.
StephanTLavavej 9af6598
Move code into the atomic_wait satellite DLL.
StephanTLavavej 8b89ab0
Increase efficiency by caching the mutex pointer.
StephanTLavavej b42dfe9
Refactor duplicate test code
e7ed875
Use _Compressed_pair.
StephanTLavavej ec2a3a5
Code review feedback for tests.
StephanTLavavej bbdfc77
Return shared_mutex*, comment that this isn't really flat.
StephanTLavavej 2763e9f
move fancy pointer test to VSO_0000000_fancy_pointers
eeb28aa
Attempt to achieve a conformant allocator
a0faf59
Update test
a9db2ca
Add explicit.
StephanTLavavej 33b19d0
stl/msbuild changes.
StephanTLavavej 627641f
stl/msbuild: Drop special_math.cpp comment.
StephanTLavavej b3aad6f
Use _Init_locks.
StephanTLavavej 45a47b4
Merge branch 'main' into syncstream
StephanTLavavej d70684f
Remove noexcept from move/swap machinery, mention LWG-3498.
StephanTLavavej File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -96,6 +96,7 @@ | |
| "string", | ||
| "string_view", | ||
| "strstream", | ||
| "syncstream", | ||
| "system_error", | ||
| "thread", | ||
| "tuple", | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.