Commit graph

220 commits

Author SHA1 Message Date
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
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
ZombineDev
028581f9f1 Improve std.concurrency.receiveOnly example
* Make example a DDoc-ed unittest
* Show receiving scalars, as well as tuples
2017-11-21 00:13:55 +02:00
Sebastian Wilzbach
df6365092a Replace body keyword with its replacement: do
Automatic replacement with

    sed -i "s/^\([ ]*\)body/\1do/" -i **/*.d
2017-11-20 15:33:52 +01:00
Nemanja Boric
1c12d6d59e
Add std.concurrency.Generator overloads to accept Fiber's stack guard's size
As of 2.075 Fiber's stack protection pages are on by default, preventing
OS to merge mmaped ranges, so the total number of mmaped ranges is much
higher than before. In case there's no need for the stack overflow
protection and the high number of fibers, it may be wise to change this
setting, so the Generator's constructor overloads which support
this are added.

Fix issue 17914
2017-11-02 14:37:08 +01:00
anonymous
0123ea97e1 don't deprecate initOnce with unshared Mutex 2017-09-02 23:44:20 +02:00
anonymous
82fe75f9d5 let initOnce take a shared Mutex 2017-09-02 23:38:31 +02:00
Steven Schveighoffer
373babe48e fix issue 13262 - Ensure shared data can be sent and received via
send/receive. Also now allows all types of shared items to be stored in
a Variant.
2017-08-16 11:35:11 -04:00
The Dlang Bot
b97aa79fb6 Merge pull request #5665 from aG0aep6G/16230
prepare for fix of druntime issue 16230
merged-on-behalf-of: Petar Kirov <ZombineDev@users.noreply.github.com>
2017-08-01 15:09:18 +02:00
anonymous
7e87d0646a prepare for fix of druntime issue 16230 2017-08-01 09:22:41 +02:00
Sebastian Wilzbach
f46a73ad26 Mark random coverage line in std.concurrency 2017-07-17 22:05:08 +02:00
Sebastian Wilzbach
a5afe1609f Fix Issue 17640 - std.concurrenct writeln conflicts with std.stdio writeln in unittests 2017-07-12 16:03:25 +02:00
Sebastian Wilzbach
10d05229ae Make Phobos module examples runnable 2017-07-02 00:22:13 +02:00
The Dlang Bot
83ae83c178 Merge pull request #5515 from dukc/fiberRangeInterface
Generator implements InputRange interface
merged-on-behalf-of: Jack Stouffer <jack@jackstouffer.com>
2017-07-01 04:45:55 +02:00
dukc
942da358c2 Some cleanup on imports and comments 2017-07-01 02:10:24 +02:00
Vladimir Panteleev
f89cf8c395
std.concurrency: Fix "Synposis" typo 2017-06-28 19:33:30 +00:00
dukc
5983bcc8de Since std.concurrency.Generator is a class already, I made it to implement
std.range.interfaces.InputRange without having to call inputRangeObject().
2017-06-26 23:49:51 +03:00
The Dlang Bot
abfffae14f Merge pull request #5462 from andralex/concurrencybasesux
Remove std.concurrencybase
merged-on-behalf-of: Andrei Alexandrescu <andralex@users.noreply.github.com>
2017-06-17 06:09:08 +02:00
Vladimir Panteleev
d0b9555a06
Revert "Sort selective imports"
This reverts commit 998ad51fd7.
2017-06-13 17:51:52 +00:00
Sebastian Wilzbach
998ad51fd7 Sort selective imports 2017-06-12 08:12:09 +02:00
Sebastian Wilzbach
61717ecc7d Sort imports 2017-06-12 07:54:38 +02:00
Andrei Alexandrescu
44a3be48db Remove std.concurrencybase 2017-06-11 11:01:08 -04:00
Jack Stouffer
af4bb44baa Use dfmt on std/concurrency.d 2017-03-19 15:05:35 -04:00
Jack Stouffer
de56aeac09 Added attributes to several functions in std.concurrency 2017-03-10 15:57:56 -05:00
The Dlang Bot
d4ead5fc88 Merge pull request #5255 from JackStouffer/thisTid
Make std.concurrency functions leaner by using static functions
merged-on-behalf-of: David Nadlinger <code@klickverbot.at>
2017-03-10 21:05:43 +01:00
Jack Stouffer
05dbd92369 Make std.concurrency functions leaner by using static functions 2017-03-10 13:56:12 -05:00