mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
9c100ab844
separates platform-specific timer and interrupt code into hal-posix-task and hal-win-task gems. mruby-task now uses HAL interface defined in task_hal.h, making it easier to port to new platforms. hal-posix-task: uses sigalrm/setitimer for timer, sigprocmask for irq protection, and SA_RESTART flag to prevent EINTR on system calls. hal-win-task: uses multimedia timer API and critical_section for irq protection. both HALs support multiple mrb_state instances with single shared timer. auto-detection loads appropriate HAL based on platform. Co-authored-by: Claude <noreply@anthropic.com>
12 lines
366 B
Ruby
12 lines
366 B
Ruby
MRuby::Gem::Specification.new('hal-win-task') do |spec|
|
|
spec.license = 'MIT'
|
|
spec.authors = 'mruby developers'
|
|
spec.summary = 'Windows HAL for mruby-task'
|
|
|
|
# HAL gem depends on feature gem - brings in mruby-task automatically
|
|
spec.add_dependency 'mruby-task', core: 'mruby-task'
|
|
|
|
# Windows multimedia timer library
|
|
spec.linker.libraries << 'winmm'
|
|
end
|