Files
boc/aamos-ledger-rust/target/debug/deps/libparking-35c5f4e3c41e7d22.rmeta
T

55 lines
20 KiB
Plaintext
Raw Normal View History

rust
N#rustc 1.96.0 (ac68faa20 2026-05-25)ÁÀ뉊]!ÜÛê(¹Þ—šên-5be7b69c3ff7b5b8ÁíàÄTËŸ ÜJîÄ)'ß\¥!-3d1337db07d0b3aeÁ¤²XctÔ'ÐÓ©z¨ɽÓ-a4945860e1c53b00Á¤°ð ¾ä-±($²ï=©Ã-7e98a21bfd32b0edÁòÖÀH•‘PIÓHã#£-055f30b747f859b6Árustc_std_workspace_coreÁ­Cçß^ò½èÝ$­Çÿ+Cé-c4878ee60b2242c9ÁŸÃï+Ñ]ŠqB<ÏïW#-8dd1dd90e70d0b6aÁ miniz_oxideÁ€š»J(P>àö÷g\K-1eb618da2918ab7fÁadler2ÁÆ;+Þ®5¥Ìýݰ¦ÛLˆ-f7919172d268e069Á hashbrownÁPäV9ÒÆèÜ"ÊÖVŽ\-0fc2184a5da6723aÁrustc_std_workspace_allocÁs&ØòØy¯s•bæ!‰ýŠ-97e4bf30be240674Á
std_detectÁhŠBîÙºÌI®ËÅš-9dbbf8346ba7ac8bÁrustc_demangleÁûë9´Ç×@Œ’ùXFº-f33013f239bf9f14Ácfg_ifÁÜLhž§Œaã¯>­-0a71c8f33a838301Á addr2lineÁ׎Þ!]8V$É@@-e618e6be60e87ba2ÁgimliÁ¸
°µ~Î1‹Ñt ðÁ€w-1f7768a68858f670ÁobjectÁ
áPÃ?­À¶¼QHJ¥-914cd6a4dbe590d1ÁmemchrÁ›º«8Ór­2Ù $¨ûib-cf21ca6f2bb15dcdÁë
‹ás«LÖ€îâƒ×ɯŒ-ee6f3747e38367f0ÁçloomÁÀ 
  
pairÁParkerÁunparkerÁ_markerÁæ parkÁ park_timeoutÁ
park_deadlineÁunparkÁÀ>×UnparkerÁ!innerÁ#š # will_unparkÁ# same_parkerÁ'×)ƒ+÷EMPTYÁPARKEDÁNOTIFIEDÁInnerÁ0º0lockÁ0cvarÁ4è4š 7wakeÁ7 wake_by_refÁ







$
%
%
&
&
(
(
(
*
5
6
9
³³ÀÏ:W‡
Áyοcƒ
¿c!!à "Ò ÐL¼Æ~
º¤ØÈ
éããWakerÁäwakerÁ¸ È
4åêé‚È
¿<00Ö
1º2é
3ô
¼´ix_öµI'!)!+ã70³ ¿cØ
é¿<ÍÍ$±gl±g
ë!†J†JK‰Jµ 7ŠJphantomÁ7J¤7·0ØQdèÉçEçEèEGlobalÁ ¿±‡§í# Ÿ4¶g
6ÃD¶g ÄgÅgüŽg78¦g¢$–g É& ¢A(VœN»T¢¢l„hœ$„h"4‰h»"D‰h˜h9üÙg?ùg»$ègr°y9œ»š!-./0Àç—3a$á.ל¤, PhantomDataÁ\²ïKΆJWakeÁ$ã¿< 
ã
DurationÁD€­Ö InstantÁ<ÃóT AtomicUsizeÁ\ß„Ä
×ÅÀׯÀCondvarÁ<‡>¤µ>üšhü! Thread parking and unparking.Á"úü&nk A [`Parker`] is in either the notified or unnotified state. The [`park()`][`Parker::park()`] method blocksÁü•fc the current thread until the [`Parker`] becomes notified and then puts it back into the unnotifiedÁüüYV state. The [`unpark()`][`Unparker::unpark()`] method puts it into the notified state.ÁÖúüÚa^ This API is similar to [`thread::park()`] and [`Thread::unpark()`] from the standard library.Áü¼b_ The difference is that the state "token" managed by those functions is shared across an entireÁüŸc` thread, and anyone can call [`thread::current()`] to access it. If you use `park` and `unpark`,Áüƒ^[ but you also call a function that uses `park` and `unpark` internally, that function couldÁüâc` cause a deadlock by consuming a wakeup that was intended for you. The [`Parker`] object in thisÁüÆc` crate avoids that problem by managing its own state, which isn't shared with unrelated callers.Áªúü®IF [`thread::park()`]: https://doc.rust-lang.org/std/thread/fn.park.htmlÁüø_\ [`Thread::unpark()`]: https://doc.rust-lang.org/std/thread/struct.Thread.html#method.unparkÁüØOL [`thread::current()`]: https://doc.rust-lang.org/std/thread/fn.current.htmlÁ¨ ú # ExamplesÁ» ú<¿  ```Á¤Ç  use std::thread;ÁäÜ  use std::time::Duration;ÁÄù  use parking::Parker;Á
úÔ–
 let p = Parker::new();Á̱
 let u = p.unparker();ÁË
úÌÏ
 // Notify the parker.Á
u.unpark();Áù
úüý
;8 // Wakes up immediately because the parker is notified.Á
p.park();ÁÇ úÜË  thread::spawn(move || {Áüç 2/ thread::sleep(Duration::from_millis(500));Áœš  u.unpark();Á  });Á úüº TQ // Wakes up when `u.unpark()` notifies and then goes back into unnotified state.Ál
Ñ#<
ö ahttps://raw.githubusercontent.com/smol-rs/smol/master/assets/images/logo_fullsize_transparent.pngÁ„’‡&l˜!-./0À© ç¹ —3aË á.×Þ ¤,ïÔ ïæ KÔ †J²Ï ¿<