mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
public enums + more public structs (libs/examples/tests)
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
module sync
|
||||
|
||||
#include <pthread.h>
|
||||
struct Mutex {
|
||||
pub struct Mutex {
|
||||
mutex C.pthread_mutex_t
|
||||
}
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ module sync
|
||||
// Mutex HANDLE
|
||||
type MHANDLE voidptr
|
||||
|
||||
struct Mutex {
|
||||
pub struct Mutex {
|
||||
mut:
|
||||
mx MHANDLE // mutex handle
|
||||
state MutexState // mutex state
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
module sync
|
||||
|
||||
struct WaitGroup {
|
||||
pub struct WaitGroup {
|
||||
mut:
|
||||
mu Mutex
|
||||
active int
|
||||
|
||||
Reference in New Issue
Block a user