diff --git a/atomics.html b/atomics.html index a0b5d2b..6735346 100644 --- a/atomics.html +++ b/atomics.html @@ -1,7 +1,7 @@ - + @@ -497,7 +497,7 @@

Procs

diff --git a/channels.html b/channels.html index 15ccd17..8ad9dbf 100644 --- a/channels.html +++ b/channels.html @@ -1,7 +1,7 @@ - + @@ -213,8 +213,8 @@

Types

Typed channel - Source   -Edit   + Source   +Edit  
@@ -230,8 +230,8 @@

Procs

Shares Channel by reference counting. - Source   -Edit   + Source   +Edit  
@@ -243,8 +243,8 @@

Procs

- Source   -Edit   + Source   +Edit  
@@ -258,8 +258,8 @@

Procs

An initialization procedure, necessary for acquiring resources and initializing internal state of the channel.

elements is the capacity of the channel and thus how many messages it can hold before it refuses to accept any further messages.

- Source   -Edit   + Source   +Edit   @@ -271,8 +271,8 @@

Procs

Returns an estimation of the current number of messages held by the channel. - Source   -Edit   + Source   +Edit  
@@ -284,8 +284,8 @@

Procs

Receives a message from the channel. A version of recv that returns the message. - Source   -Edit   + Source   +Edit  
@@ -297,8 +297,8 @@

Procs

This blocks the receiving thread until a message was successfully received.

If the channel does not contain any messages this will block the thread until a message get sent to the channel.

- Source   -Edit   + Source   +Edit   @@ -310,8 +310,8 @@

Procs

Receives a message from the channel. A version of recv that returns the message and isolates it. - Source   -Edit   + Source   +Edit  
@@ -326,8 +326,8 @@

Procs

The memory of src is moved, not copied.

If the channel is already full with messages this will block the thread until messages from the channel are removed.

- Source   -Edit   + Source   +Edit   @@ -344,8 +344,8 @@

Procs

Blocking is still possible if another thread uses the blocking version of the send proc / recv proc and waits for the data/space to appear in the channel, thus holding the internal lock to channel's buffer.

Returns false and does not change dist if no message was received.

- Source   -Edit   + Source   +Edit   @@ -362,8 +362,8 @@

Procs

Blocking is still possible if another thread uses the blocking version of the send proc / recv proc and waits for the data/space to appear in the channel, thus holding the internal lock to channel's buffer.

Returns false if the message was not sent because the number of pending messages in the channel exceeded its capacity.

- Source   -Edit   + Source   +Edit   @@ -381,8 +381,8 @@

Templates

Helper template for send. - Source   -Edit   + Source   +Edit  
@@ -394,8 +394,8 @@

Templates

Helper template for trySend. - Source   -Edit   + Source   +Edit  
@@ -411,7 +411,7 @@

Templates

diff --git a/channels.idx b/channels.idx index 3081459..ad261bb 100644 --- a/channels.idx +++ b/channels.idx @@ -1,15 +1,15 @@ nimTitle channels channels.html module threading/channels 0 -nim Chan channels.html#Chan object Chan 261 -nim `=destroy` channels.html#=destroy,Chan[T] proc `=destroy`[T](c: Chan[T]) 265 -nim `=copy` channels.html#=copy,Chan[T],Chan[T] proc `=copy`[T](dest: var Chan[T]; src: Chan[T]) 281 -nim trySend channels.html#trySend,Chan[T],sinkIsolated[T] proc trySend[T](c: Chan[T]; src: sink Isolated[T]): bool 290 -nim trySend channels.html#trySend.t,Chan[T],T template trySend[T](c: Chan[T]; src: T): bool 309 -nim tryRecv channels.html#tryRecv,Chan[T],T proc tryRecv[T](c: Chan[T]; dst: var T): bool 313 -nim send channels.html#send,Chan[T],sinkIsolated[T] proc send[T](c: Chan[T]; src: sink Isolated[T]) 326 -nim send channels.html#send.t,Chan[T],T template send[T](c: Chan[T]; src: T) 340 -nim recv channels.html#recv,Chan[T],T proc recv[T](c: Chan[T]; dst: var T) 344 -nim recv channels.html#recv,Chan[T] proc recv[T](c: Chan[T]): T 353 -nim recvIso channels.html#recvIso,Chan[T] proc recvIso[T](c: Chan[T]): Isolated[T] 358 -nim peek channels.html#peek,Chan[T] proc peek[T](c: Chan[T]): int 365 -nim newChan channels.html#newChan,Positive proc newChan[T](elements: Positive = 30): Chan[T] 369 -nimgrp recv channels.html#recv-procs-all proc 344 +nim Chan channels.html#Chan object Chan 265 +nim `=destroy` channels.html#=destroy,Chan[T] proc `=destroy`[T](c: Chan[T]) 277 +nim `=copy` channels.html#=copy,Chan[T],Chan[T] proc `=copy`[T](dest: var Chan[T]; src: Chan[T]) 283 +nim trySend channels.html#trySend,Chan[T],sinkIsolated[T] proc trySend[T](c: Chan[T]; src: sink Isolated[T]): bool 292 +nim trySend channels.html#trySend.t,Chan[T],T template trySend[T](c: Chan[T]; src: T): bool 311 +nim tryRecv channels.html#tryRecv,Chan[T],T proc tryRecv[T](c: Chan[T]; dst: var T): bool 315 +nim send channels.html#send,Chan[T],sinkIsolated[T] proc send[T](c: Chan[T]; src: sink Isolated[T]) 328 +nim send channels.html#send.t,Chan[T],T template send[T](c: Chan[T]; src: T) 342 +nim recv channels.html#recv,Chan[T],T proc recv[T](c: Chan[T]; dst: var T) 346 +nim recv channels.html#recv,Chan[T] proc recv[T](c: Chan[T]): T 355 +nim recvIso channels.html#recvIso,Chan[T] proc recvIso[T](c: Chan[T]): Isolated[T] 360 +nim peek channels.html#peek,Chan[T] proc peek[T](c: Chan[T]): int 367 +nim newChan channels.html#newChan,Positive proc newChan[T](elements: Positive = 30): Chan[T] 371 +nimgrp recv channels.html#recv-procs-all proc 346 diff --git a/index.html b/index.html index dcadeec..5c48637 100644 --- a/index.html +++ b/index.html @@ -1,7 +1,7 @@ - + @@ -268,7 +268,7 @@

Index

diff --git a/smartptrs.html b/smartptrs.html index f4970b9..12d2076 100644 --- a/smartptrs.html +++ b/smartptrs.html @@ -1,7 +1,7 @@ - + @@ -541,7 +541,7 @@

Templates

diff --git a/theindex.html b/theindex.html index dcadeec..5c48637 100644 --- a/theindex.html +++ b/theindex.html @@ -1,7 +1,7 @@ - + @@ -268,7 +268,7 @@

Index

diff --git a/waitgroups.html b/waitgroups.html index 7354e81..5692f51 100644 --- a/waitgroups.html +++ b/waitgroups.html @@ -1,7 +1,7 @@ - + @@ -193,7 +193,7 @@

Procs