gcd_barrier.m
Objective-C•マスター
Explorer
C40
C++40
C#40
Dart40
Go40
Java40
JavaScript40
Kotlin40
Objective-C
初級10
中級10
上級10
エキスパート5
マスター5
block_retain.m
runtime_swap.m
kvo_observe.m
gcd_barrier.m
associated_obj.m
Perl40
PHP40
Python40
R40
Ruby40
Rust40
Shell40
Swift40
TypeScript40
gcd_barrier.m
Click to focus
1
2
3
4
5
6
7
8
9
dispatch_queue_t queue = dispatch_queue_create("com.app.queue", DISPATCH_QUEUE_CONCURRENT);↵
dispatch_async(queue, ^{ [self read]; });↵
dispatch_barrier_async(queue, ^{↵
[self write:data];↵
});↵
dispatch_async(queue, ^{ [self read]; });↵
dispatch_sync(queue, ^{↵
result = [self getData];↵
});
0WPM•0%•0:00•0/290(0%)|Ln 1, Col 1
UTF-8•Objective-C