Skip to content

enclave内のstatic変数ライブラリでonce_cellからlazy_staticに変更#542

Merged
osuketh merged 4 commits intomasterfrom
fix/to_lazy_static
Mar 27, 2021
Merged

enclave内のstatic変数ライブラリでonce_cellからlazy_staticに変更#542
osuketh merged 4 commits intomasterfrom
fix/to_lazy_static

Conversation

@osuketh
Copy link
Copy Markdown
Member

@osuketh osuketh commented Mar 27, 2021

once_cell::sync でスレッド安全性考慮しwait処理する部分で thread::current() の処理がTCS policyがBoundである必要性がある。 --> lazy_staticの spin_loopに戻す。

thread '<unnamed>' panicked at 'use of thread::current() need TCS policy is Bound',

image

@osuketh osuketh merged commit 1eddfca into master Mar 27, 2021
@osuketh osuketh deleted the fix/to_lazy_static branch March 27, 2021 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants