diff options
| author | amelia squires <[email protected]> | 2024-09-30 11:46:32 -0500 |
|---|---|---|
| committer | amelia squires <[email protected]> | 2024-09-30 11:46:32 -0500 |
| commit | 39f7d8562e355d85e7795f7cd43b29ed12f9c58e (patch) | |
| tree | 53b6ad30d54bd6a9d56342fefffac996e915865a /docs/thread.md | |
| parent | fad6f8b6c1f0d551a733160c417a253616b71f5d (diff) | |
docs
Diffstat (limited to 'docs/thread.md')
| -rw-r--r-- | docs/thread.md | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/docs/thread.md b/docs/thread.md index 00619ea..62e31bf 100644 --- a/docs/thread.md +++ b/docs/thread.md @@ -6,6 +6,18 @@ a thread-safe object buffer to easily transfer things between threads
+you *can* index the buffer normally, but all data will be read only, and it does NOT work with the colon syntax
+
+i might be able to fix this in the future with a proxy function solution, the difficulty arrises when i have no way to tell if it is being sent as a dot function
+
+```lua
+buffer = llib.thread.buffer(llib.crypto.md5())
+buffer.final(buffer:get()) --works fine, same as buffer:get().final(buffer:get())
+buffer:final() --does not work, this *would* expands to buffer.final(buffer), but unless the functions expects my specific buffer object (which is dumb), it will break
+```
+
+also, be careful sending userdata, lightuser data cant really be copied, user data will be memcpy'd (or will use __clone)
+
full example:
```lua
|
