mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
all: experimental locked concurrency support, part 1 (#5637)
This commit is contained in:
@ -2,7 +2,7 @@ module websocket
|
||||
|
||||
fn (mut ws Client) write_to_server(buf voidptr, len int) int {
|
||||
mut bytes_written := 0
|
||||
ws.write_lock.lock()
|
||||
ws.write_lock.m_lock()
|
||||
bytes_written = if ws.is_ssl {
|
||||
C.SSL_write(ws.ssl, buf, len)
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user