Re: [racket-users] Sharing a udp socket between threads via parameters

2019-12-05 Thread David Storrs
Cool, thanks! On Thu, Dec 5, 2019, 4:11 PM Matthew Flatt wrote: > At Thu, 5 Dec 2019 14:26:17 -0500, David Storrs wrote: > > My understanding is that parameters are copied between threads, but I'm > not > > sure how this interacts with things like file ports, network connections, > > etc.

Re: [racket-users] Sharing a udp socket between threads via parameters

2019-12-05 Thread Matthew Flatt
At Thu, 5 Dec 2019 14:26:17 -0500, David Storrs wrote: > My understanding is that parameters are copied between threads, but I'm not > sure how this interacts with things like file ports, network connections, > etc. Would the following code be problematic? > > > (define conn (make-parameter)) >

[racket-users] Sharing a udp socket between threads via parameters

2019-12-05 Thread David Storrs
My understanding is that parameters are copied between threads, but I'm not sure how this interacts with things like file ports, network connections, etc. Would the following code be problematic? (define conn (make-parameter)) (define s (udp-open-socket)) (udp-bind! s #f 12345) (conn s)