I would create a package with a trivial new, and insert, update, delete and fetch methods as a generic interface
And all you would have done is replicate the tie mechanism with slightly different method names and calling syntax. It would be no more efficient of time nor space. No easier to use or maintain.
And it would need to address all the same locking and sharing, creation and destruction problems that thread::shared variables already address.
In reply to Re^5: Sharing large data structures between threads
by BrowserUk
in thread Sharing large data structures between threads
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |