Buckets:
| using namespace emscripten; | |
| void thread(void) { | |
| EM_ASM({ | |
| globalThis.globalProperty = { | |
| foo: function(value) { | |
| return value; | |
| } | |
| }; | |
| }); | |
| val globalProperty = val::global("globalProperty"); | |
| auto result0 = globalProperty.call<val>("foo", val("bar")); | |
| assert(result0.as<std::string>() == "bar"); | |
| } | |
| int main() { | |
| std::thread t(thread); | |
| std::thread t1(thread); | |
| t.join(); | |
| t1.join(); | |
| return 0; | |
| } | |
Xet Storage Details
- Size:
- 543 Bytes
- Xet hash:
- ea106b52ab4ac50b0546fec957b660ca701abb8414596c25bfb1da7dce2f1cc4
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.