Subject: [ruby-ffi] Re: How to copy a struct? |
From: Wayne Meissner |
Date: 10/29/11 6:57 PM |
To: ruby-ffi@googlegroups.com |
For this task I plan to have multiple threads, each reading from a
network socket. I will struct.new a buffer for each thread, the dll
call reads into the struct, the struct is used read only in any
threads that reference it. No need for dup with this approach.