High Definition Standard Definition Theater
Video id : Db2RzBV3IWQ
ImmersiveAmbientModecolor: #b69391 (color 2)
Video Format : (720p) openh264 ( https://github.com/cisco/openh264) mp4a.40.2 | 44100Hz
Audio Format: 140 ( High )
PokeEncryptID: fce197b91511179b70757e9f5089d8f3eecf8857ae3159722f8103017383c08be8f8ce16592419182ec1479e780f2aea
Proxy : cal1.iv.ggtyler.dev - refresh the page to change the proxy location
Date : 1738037716753 - unknown on Apple WebKit
Mystery text : RGIyUnpCVjNJV1EgaSAgbG92ICB1IGNhbDEuaXYuZ2d0eWxlci5kZXY=
143 : true
243 Views • Sep 17, 2023 • Click to toggle off description
So you need to share an object between threads, what do you do?

Wrap it in an ArcMutex pointer and call it a day right?

Let's take it to the next level.

A very common pattern in rust is to hide the arc mutex pointer in an inner property and to implement the clone trait, that way you can just pass the object around by cloning it.

Just be careful, because every time you call a method in your SharedCache object you will be locking internally, which might lead to some race conditions.
Metadata And Engagement

Views : 243
Genre: Science & Technology
License: Standard YouTube License
Uploaded At Sep 17, 2023 ^^


warning: returnyoutubedislikes may not be accurate, this is just an estiment ehe :3
Rating : 5 (0/18 LTDR)

100.00% of the users lieked the video!!
0.00% of the users dislieked the video!!
User score: 100.00- Masterpiece Video

RYD date created : 2023-09-18T06:39:09.42212Z
See in json
Connections
Nyo connections found on the description ;_; report an issue lol

4 Comments

Top Comments of this video!! :3

@jimmylarsson5425

1 week ago

You can just clone the arc?

1 |

@usher-p

1 year ago

Why not just make a box and leak it?

1 |

Go To Top