1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

all: rename [ref_only] -> [heap] (#8718)

This commit is contained in:
Uwe Krüger
2021-02-13 15:52:01 +01:00
committed by GitHub
parent 2a8d0ddaf5
commit 374739b804
20 changed files with 40 additions and 36 deletions

View File

@@ -22,19 +22,19 @@ type SHANDLE = voidptr
//[init_with=new_mutex] // TODO: implement support for this struct attribute, and disallow Mutex{} from outside the sync.new_mutex() function.
// `SRWLOCK` is much more performant that `Mutex` on Windows, so use that in both cases since we don't want to share with other processes
[ref_only]
[heap]
pub struct Mutex {
mut:
mx C.SRWLOCK // mutex handle
}
[ref_only]
[heap]
pub struct RwMutex {
mut:
mx C.SRWLOCK // mutex handle
}
[ref_only]
[heap]
struct Semaphore {
mtx C.SRWLOCK
cond C.CONDITION_VARIABLE