-
Notifications
You must be signed in to change notification settings - Fork 14k
Closed
Labels
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsArea: Documentation for any part of the project, including the compiler, standard library, and toolsC-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCE-help-wantedCall for participation: Help is requested to fix this issue.Call for participation: Help is requested to fix this issue.E-mediumCall for participation: Medium difficulty. Experience needed to fix: Intermediate.Call for participation: Medium difficulty. Experience needed to fix: Intermediate.E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.P-mediumMedium priorityMedium priority
Description
Part of #29329
http://doc.rust-lang.org/std/sync/
Here's what needs to be done to close out this issue:
- the module-level documentation is very small. It should explain what the module is for in more detail, with some examples.
-
std::sync::atomiccould use links to the types it references. -
std::sync::atomic::fencehas very... dry docs that aren't very helpful. And there's no examples. -
ATOMIC_*_INIT(link is just to BOOL but all of them) could use examples. -
Atomic*(link is to Bool but all of them) are mostly fine, but could use links to other types and some beefing up generally. -
Barrierneeds a bunch of types linked. -
BarrierWaitResultshould explain its relationship withBarrierand link to it. -
Condvarneeds examples on its methods. -
Onceneeds to link toONCE_INIT. -
PoisonErrorneeds examples. -
RwLockneeds examples, links to types, and a comparison between it andMutex. -
WaitTimeoutResultshould link to the method that creates it. -
TryLockErrorneeds to link to the function that creates it. -
ONCE_INITneeds a link toOnceand some examples. -
LockResultneeds links. -
TryLockResultneeds links. -
Weakcould do a much better job of explaining itself. -
std::sync::mspcneeds a lot of links. The docs are good but a bit jargon-heavy, expanding those would be nice. -
IntoIterneeds more links and to explain how you get one. -
Iteris the same. -
Receiverneeds links, examples, and more explanation of what it is. -
RecvErrorneeds to link torecv. -
SendErrorneeds links. -
Senderhas the same issues asReceiver. -
SyncSenderhas the same asSender. -
TryIterneeds to link to how to create one. -
RecvTimeoutErrorneeds to link torecv_timeout. -
TryRecvErrorneeds to link totry_recv -
TrySendErrorneeds to link totry_send. -
channelhas almost no docs and it's the focus of this module! -
sync_channelshould point tochanneland then tell how it's different.
Metadata
Metadata
Assignees
Labels
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsArea: Documentation for any part of the project, including the compiler, standard library, and toolsC-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCE-help-wantedCall for participation: Help is requested to fix this issue.Call for participation: Help is requested to fix this issue.E-mediumCall for participation: Medium difficulty. Experience needed to fix: Intermediate.Call for participation: Medium difficulty. Experience needed to fix: Intermediate.E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.P-mediumMedium priorityMedium priority