-
-
Notifications
You must be signed in to change notification settings - Fork 65
Std read-write lock support and adaptation std fs #203
Copy link
Copy link
Open
Description
fn main() {
var f = fs.open('./test.txt', syscall.O_RDONLY, 0)
for int i = 0; i < 10; i += 1 {
go fn():void! {
var c = client.multipart_t_new()
var parts = c.text('username', 'nature user')
.text('message', 'hello from nature!')
.file('testfile', 'test.txt', f.content())
}()
}
co.sleep(1000)
}
Operations like this can cause unpredictable crashes because only one coroutine can exist in fd at a time, and using fd concurrently can lead to abnormal crashes.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels