Vladiwostok
231ae8b68a
Fix D-Scanner linting issues ( #9070 )
...
* Fix UndocumentedDeclarationCheck linting issue
* Fix IfConstraintsIndentCheck linting issue
* Address feedback
* Fix publictests CI
* Fix old (libdparse) D-Scanner linting warn
2024-10-27 01:21:56 -07:00
Nick Treleaven
860a8871a7
Avoid throwing shared type
...
See comment for details and:
https://github.com/dlang/dmd/pull/14706#issuecomment-1432027545
2023-03-02 17:00:49 +00:00
Nick Treleaven
e18ed95ed0
Tweak std.concurrency docs
2023-01-17 16:27:47 +00:00
Walter Bright
2c7e732236
replace isImplicitlyConvertible with is expression
2022-12-01 00:52:55 -08:00
Paul Backus
56697c4837
Fix Issue 23350 - Nondeterministic test failure in std.concurrency
...
Previously, a TOCTOU bug in threadInfo could result in a null
dereference if 'scheduler' was changed to null between the evaluation of
the 'if' condition and the call to scheduler.threadInfo.
2022-09-21 00:56:58 +02:00
Sebastian Wilzbach
63712f491c
Remove redundant access specifier from Phobos
2021-10-27 10:04:23 +03:00
WalterW
32ecd42634
Fix issue 17037 - std.concurrency has random segfaults
2021-10-19 13:29:49 +00:00
Petar Kirov
5cf43c23ff
Delete outdated comment
...
As per https://github.com/dlang/phobos/pull/8276#discussion_r729390034 .
2021-10-15 00:14:13 +00:00
MoonlightSentinel
c95d013d8e
Fix 22370 - Accept noreturn callables in std.concurrency.spawn[Linked]
...
`spawn[Linked]` required the passed callable to return `void`. This is
unecessarily strict because both `void` and `noreturn` imply that no
actual value will be returned by the callable.
2021-10-14 18:49:49 +00:00
MoonlightSentinel
4cf70e6c43
Fix 22369 - Omit unreachable statements in std.concurrency
...
Instantiating these templates with noreturn values / callbacks causes
the versioned statements to become unreachable.
2021-10-13 15:26:14 +02:00
Tomoya Tanjo
9bb5abdd45
Fix import
2021-08-03 12:57:03 +03:00
Tomoya Tanjo
f468c8290b
Make Tid.toString
@safe-able
2021-08-03 12:57:03 +03:00
RazvanN7
69800d9475
Fix Issue 20665 - std.concurrency.spawn should document not working with delegates
2021-07-30 14:13:43 +03:00
Biotronic
abb2156487
Fix issue 20665
2021-07-30 12:30:59 +03:00
berni44
6b7a10ecef
Fix Issue 21512 - RedBlackTree!Tid treats any values as duplicated except for Tid.init
2021-05-03 00:48:43 +02:00
Nick Treleaven
ea00d00937
std.concurrency docs: Group symbol links into table rows ( #7892 )
...
std.concurrency docs: Group symbol links into table rows
merged-on-behalf-of: Razvan Nitu <RazvanN7@users.noreply.github.com>
2021-03-22 10:21:12 +01:00
berni44
6f2a0934a7
Adapt imports of std.format to new structure of std.format.
2021-03-19 13:22:00 +01:00
Paul Backus
6e6e024fa3
Fix issue 21663 - std.concurrency.receiveOnly doesn't work with tuples
2021-03-01 19:24:24 +01:00
Martin Kinkelin
1a459c5996
Get rid of std.conv.emplace[Ref](), use core[.internal].lifetime
...
The emplace() stuff was moved to druntime; for some reason, it's still
in Phobos.
I've diffed the two versions, and they are still almost identical (incl.
unittests); the druntime version appears to have seen some improvements
(e.g., forwarding r/lvalueness of the arguments) in the meantime.
2021-01-17 16:02:25 +01:00
Tomoya Tanjo
d86c1f6059
Fix issue 13930, 19345 - Fix receiveOnly for non-assignable types
2020-10-10 00:32:40 +00:00
Geod24
04f3979317
Replace 'Issue XXX' with Bugzilla links
...
Make the links clickable, as was done in the DMD repository.
Also avoids any ambiguity w.r.t. where the issue is stored.
2020-04-13 16:28:09 +09:00
Alexandru Militaru
bb62aaca3d
Replaced version (unittest) with version (StdUnittest) to avoid unnecessary overhead when compiling with -unittest
2020-01-19 14:05:17 +02:00
The Dlang Bot
d0d02596dc
Merge pull request #7333 from berni44/issue7446
...
Fix Issue 7446 - [TDPL] Trivial asynchronous file copy example crashes
merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2020-01-02 09:20:06 +01:00
Bernhard Seckinger
9340d7a6b1
Fix Issue 7446 - [TDPL] Trivial asynchronous file copy example crashes
...
with OwnerTerminated
2019-12-27 11:35:32 +01:00
Bernhard Seckinger
63a7f855e0
Fix Issue 17427 - std.concurrency internal errors on uninitialised mailbox
2019-12-25 09:38:46 +01:00
Bernhard Seckinger
c8331f13a0
Fix Issue 20160 - ThreadInfo.cleanup() clears local thread's
...
registered names instead of "this"'s
2019-12-11 14:19:09 +01:00
Andrej Mitrovic
6726f03214
FiberScheduler: Make the stack size configurable
...
This makes the create() method protected to enable
spawning a fiber with a custom stack size.
The InfoFiber class has been made protected to
allow instantiating it in subclasses.
2019-09-25 10:23:42 +09:00
Robert Schadek
2b9e5377f1
adds assert messages to std.concurrency
...
* Nicholas review
2019-08-15 09:03:02 +01:00
Tomáš Chaloupka
267c2aa7ea
Fix issue 20097
...
Allow SysTime to be sendable with std.concurrency.send
2019-08-02 12:17:55 +02:00
Mathias LANG
b64088b911
Make locally-defined FiberScheduler
actually usable ( #7096 )
...
Make locally-defined `FiberScheduler` actually usable
merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2019-07-01 08:22:37 +02:00
Geod24
1f2da409cc
Fix Issue 4957: std.concurrency rejects structs with Tid
...
In addition to the fix which makes it recurse in struct, the
instantiation was changed to not use recursive template instantiation,
exception for struct's tupleof.
2018-10-23 04:12:59 -04:00
Iain Buclaw
fd5facfe04
posix.mak: Enforce whitespace before opening parenthesis for version conditions
2018-09-22 16:57:24 +02:00
Sebastian Wilzbach
c324714fde
Remove a few cases of underscore escaping
2018-06-04 13:05:01 +02:00
The Dlang Bot
abba3388dc
Merge pull request #5873 from wilzbach/std-concurrency-tests-4
...
Issue 17127 - bad example code for std.concurrency.Generator
merged-on-behalf-of: Nathan Sashihara <n8sh@users.noreply.github.com>
2018-04-18 17:00:15 +02:00
jercaianu
0dc4549c47
Corrected test by replacing size_t with int
2018-04-18 16:30:09 +03:00
Steven Schveighoffer
6a324db900
Another batch for removing version(unittest)
2018-04-12 16:27:18 -04:00
Sebastian Wilzbach
6f766dce5d
Remove redundant 'static' storage classes
2018-04-05 13:11:48 +02:00
Sebastian Wilzbach
42894784dd
Markdownify Phobos
...
$(D word) -> `word`
2018-04-02 22:32:47 +02:00
Sebastian Wilzbach
903c38d7bb
Issue 17127 - bad example code for std.concurrency.Generator
2018-03-31 21:30:52 +02:00
Sebastian Wilzbach
8f86a0d734
Fix if constraints indentation
2018-03-24 13:17:53 +01:00
Jack Stouffer
663b5b9278
Revert addition of StdUnittest
2018-02-20 13:32:32 -05:00
Jack Stouffer
18cbb29b04
Replaced version(unittest) blocks with version(StdUnittest)
2018-02-01 19:56:59 -05:00
Jonathan Marler
3c420b5f09
Removed unnecessary atomicLoad inside initOnce
2018-01-25 09:43:33 +01:00
Sebastian Wilzbach
2678754347
Add StdUnittest to std.net.curl + stdx.allocator
2017-12-21 09:36:10 +01:00
The Dlang Bot
4e197f2263
Merge pull request #5870 from wilzbach/std-concurrency-tests-2
...
Issue 17127 - bad example code for std.concurrency.Generator
merged-on-behalf-of: Jack Stouffer <jack@jackstouffer.com>
2017-11-21 21:19:28 +01:00
The Dlang Bot
a7953301bc
Merge pull request #5872 from wilzbach/std-concurrency-tests-1
...
Issue 17127 - bad example code for std.concurrency.Generator
merged-on-behalf-of: Jack Stouffer <jack@jackstouffer.com>
2017-11-21 18:38:05 +01:00
Sebastian Wilzbach
5df663ead1
Issue 17127 - bad example code for std.concurrency.Generator
2017-11-21 17:06:53 +01:00
Sebastian Wilzbach
d2e716b20e
Issue 17127 - bad example code for std.concurrency.Generator
2017-11-21 15:00:07 +01:00
Sebastian Wilzbach
8bf4afa477
Merge pull request #5875 from ZombineDev/better-std-concurrency-example-1
...
Improve std.concurrency.receiveOnly example
2017-11-21 14:56:19 +01:00
The Dlang Bot
30df763573
Merge pull request #5835 from nemanja-boric-sociomantic/fibergenerator
...
Add std.concurrency.Generator overload to accept Fiber's stack guard'…
merged-on-behalf-of: Martin Nowak <code@dawg.eu>
2017-11-21 14:19:40 +01:00