cheatfate
c5ffdd0389
Protect data argument for GC.
2016-08-30 23:15:08 +03:00
Andreas Rumpf
60b187513e
stdlib and compiler don't use .immediate anymore
2016-07-29 23:51:01 +02:00
Andreas Rumpf
67b024838c
fixes #1970
2016-07-19 20:44:08 +02:00
Andreas Rumpf
d83eb70643
async: use -d:nimDumpAsync to see what the async macro generates
2016-07-08 18:05:36 +02:00
Andreas Rumpf
b47d9b7b91
fixes #4371
2016-07-08 10:34:12 +02:00
Eduardo Bart
404b5b5ff4
Fix #4390
2016-06-21 19:42:42 -03:00
Eduardo Bart
c93292e2f7
Add withTimeout proc for futures
2016-06-19 12:56:37 -03:00
cheatfate
a93ae86088
Lets make arguments names equal on all platforms.
2016-06-17 13:44:28 +03:00
cheatfate
b53f13cbe7
New version, without any piece of code duplication.
2016-06-17 13:37:42 +03:00
Andreas Rumpf
9837b12ee6
Merge pull request #4336 from cheatfate/protectwinrw
...
Implement protection on callback environment.
2016-06-16 16:24:30 +02:00
Dominik Picheta
500aa0cb3f
Reverts 1446dc87c3. Fixes #4333 . Fixes #4170 .
2016-06-15 16:56:28 +01:00
cheatfate
974dcc8766
One more place to release callback environment protection
2016-06-14 22:33:15 +03:00
cheatfate
11d9b15fc4
Implement protection on callback environment.
2016-06-14 21:23:48 +03:00
cheatfate
de6af2f887
Resolve some dom96 comments
2016-06-12 16:25:34 +03:00
cheatfate
43329c5909
Introduce addRead/addWrite for Windows IOCP.
2016-06-12 15:09:30 +03:00
Константин Молчанов
3538e00fc7
stdlib: asyncdispatch: all: Docs updated.
2016-06-02 22:23:27 +03:00
Константин Молчанов
83af9888f5
stdlib: asyncdispatch: all: Redundant closure removed.
2016-06-02 17:20:46 +03:00
Konstantin Molchanov
a29f8df5bb
stdlib: asyncdispatch: all: Tests now pass; import sequtils removed; Future[void] case optimized.
2016-06-01 00:54:49 +04:00
Konstantin Molchanov
f44e065356
sttdlib: asyncdispatch: all: Add Future[void] support.
2016-05-31 22:33:51 +04:00
Konstantin Molchanov
c821cebf27
stdlib: asyncdispatch: all: typo fixed.
2016-05-31 15:33:41 +04:00
Konstantin Molchanov
6e8053853b
stdlib: asyncdispatch: add proc supports varargs now.
2016-05-31 15:32:30 +04:00
Konstantin Molchanov
5a007a84fc
Stdlib: asyncdispatch: all proc: Fix incorect counter value issue.
2016-05-31 14:56:45 +04:00
Konstantin Molchanov
fb9fa5f6a3
Stdlib: asyncdispatch: all proc: Replace req with openarray.
2016-05-31 14:51:24 +04:00
Konstantin Molchanov
33f0538566
Stdlib: asyncdispatch: Add support of varargs to all.
2016-05-31 10:21:21 +04:00
Konstantin Molchanov
67ae65064c
Stdlib: asyncdispatch: Add proc all.
2016-05-30 17:30:14 +04:00
cheatfate
aba60e54d5
Resolve bugs with deep recursion of asyncdispatch.
...
Introduce callSoon() implementation.
Patch tests to use waitFor() instead of asyncCheck()
2016-05-18 00:53:53 +03:00
Dominik Picheta
299989f3aa
Restore sanity check for bytesReceived in asyncdispatch.
2016-05-13 13:41:46 +01:00
cheatfate
6fa6fdeb34
Resolve bugs based on unreliable bytesReceived value.
2016-05-12 21:11:42 +03:00
Dominik Picheta
d2b191dc73
Merge pull request #4122 from yglukhov/binheap
...
Added heapqueue collection. Fixed timers in asyncdispatch.
2016-04-28 16:45:32 +01:00
Yuriy Glukhov
1a8f784834
Added heapqueue collection. Fixed timers in asyncdispatch.
2016-04-28 00:04:32 +03:00
cheatfate
2a2a3d6c39
CompletionKey parameter for functions CreateIoCompletionPort,
...
GetQueuedCompletionStatus must be 64bit size on amd64 and 32bit size on x86.
2016-04-19 03:04:44 +03:00
Dominik Picheta
1446dc87c3
await x where x is Fut var now reads after yield. Fixes #3964 .
2016-04-04 22:50:31 +01:00
Araq
0a4d9aa954
fixes regression
2015-10-07 10:03:45 +02:00
Adam Strzelecki
be991ed413
Rename rawsockets module to nativesockets
...
This change was done to avoid confusion with TCP/IP raw sockets. Native sockets
module represents handling native system low level socket API in general and is
not just limited anyhow to TCP/IP raw sockets.
A stub lib/deprecated/pure/rawsockets.nim module has been added as
compatibility layer for old code using rawsockets, so this change will not
break existing code.
2015-10-03 19:45:41 +02:00
Araq
7c012cb797
fixes #3356
2015-09-23 21:46:37 +02:00
wt
4231574111
Fix proc closeSocket (posix): bad file descriptor error
2015-09-18 18:26:15 +08:00
Dominik Picheta
77c2bcf079
Improve asyncdispatch error messages, fix some tests on Windows.
2015-09-11 14:35:42 +01:00
Dominik Picheta
28e3ad945a
Reintroduce FutureVar[T] from commit 72b4912c84.
2015-09-11 13:03:59 +01:00
Dominik Picheta
202cc48903
The async macro now supports transforming multiple async procs.
...
This is a workaround for #3182 , no forward declarations. You can now do
this:
```nim
async:
proc bar(): Future[T]
proc foo() = await bar()
proc bar() {.async.} = echo(123); await foo()
```
2015-08-03 21:28:33 +01:00
Dominik Picheta
bd6e223065
Merge branch 'async_callback_issue_0412' of https://github.com/l04m33/Nim into l04m33-async_callback_issue_0412-2
...
Conflicts:
lib/pure/asyncdispatch.nim
2015-07-26 22:03:48 +01:00
apense
1760657deb
Update asyncdispatch.nim
2015-07-09 02:12:49 -04:00
Araq
f315b0619c
asyncdispatch compiles again on Linux
2015-07-01 11:28:18 +02:00
Araq
28de800d61
Merge branch 'more_concurrency' into devel
...
Conflicts:
doc/tut1.txt
lib/core/locks.nim
lib/pure/collections/tables.nim
lib/pure/selectors.nim
2015-06-30 12:50:24 +02:00
Dominik Picheta
615defb1a9
Fixes socket problems on Windows and normalises some names.
...
Ref #2976 . Ref #2003 . See news.txt for details.
2015-06-29 20:11:21 +01:00
Dominik Picheta
6109e6a999
Fixes net/asyncdispatch on Windows. Ref #2976 . Fixes #2996 .
2015-06-25 22:38:17 +01:00
Andrew Yourtchenko
c4a25d23b6
Match the AF of the socket in connect().
2015-06-24 02:09:21 +02:00
Andrew Yourtchenko
37f50695ee
Make asyncdispatch.connectAddr IPv6-aware.
2015-06-24 01:39:58 +02:00
pdw
192ba3bbc0
lib/pure/a-c - Dropped 'T' from types
2015-06-04 13:17:11 +02:00
Araq
21ea8e6913
some progress on making async multithreaded
2015-05-28 12:49:08 +02:00
Philip Witte
c936cf9e8e
Fix bug with asyncdispatch.async and discard statements.
2015-05-20 03:34:48 -07:00