Re: [PATCH] Add atomic-box-update! function to (ice-9 atomic)

2023-08-22 Thread Andrew Tropin
On 2023-06-19 16:20, Andrew Tropin wrote: > * module/ice-9/atomic.scm (atomic-box-update!): New variable. > --- > I was implementing some concurrent code and started to use (ice-9 > atomic), when found out that there is no procedure for updating the > value of the atom using another function. > >

[PATCH v2] Add atomic-box-update! function to (ice-9 atomic)

2023-08-22 Thread Andrew Tropin
* module/ice-9/atomic.scm (atomic-box-update!): New variable. --- Changes since v1. Use single-argument proc to avoid potential perfomance problems cause of call to apply. module/ice-9/atomic.scm | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/module/ice-9/atom

Re: [PATCH v2] Add atomic-box-update! function to (ice-9 atomic)

2023-08-22 Thread Maxime Devos
Op 22-08-2023 om 12:59 schreef Andrew Tropin: * module/ice-9/atomic.scm (atomic-box-update!): New variable. --- Changes since v1. Use single-argument proc to avoid potential perfomance problems cause of call to apply. module/ice-9/atomic.scm | 14 +- 1 file changed, 13 insertio