2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

EmscriptenのASYNCIFYオプション

Last updated at Posted at 2014-11-01

Emscriptenでsleepが書けるようになった

emccのオプションに-s ASYNCIFY=1を指定すると、

emscripten_sleep(40) // 単位はms

が使える。
(このオプションを忘れると、ランタイムエラーで教えてはくれる)

このオプションが導入されるまでは、メインループを切り出して
関数にして、その関数へのポインタをemscripten_set_main_loopに
登録する処理が必要だった。

関連ツイート

関連記事

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?