actuator 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9a3330d2dc2208f4fb41476a48446eb44dd736a9
4
- data.tar.gz: 0cb07e0de6ba304a7ff40de15162396634776b48
3
+ metadata.gz: 5221697bd2bc28373a921d4f06f746b4c32d9aa8
4
+ data.tar.gz: 6e8297351ccbfe0194b46576ae589b4c0dfd29df
5
5
  SHA512:
6
- metadata.gz: 15b84d5670938bc265e12f6d6d8d5c8f3a5853bb9d74ee232f44859f2edcd0141488619cdde41e8a6163ef01d20b052ca8702bee4683481e34daa83594644f6f
7
- data.tar.gz: dbc46d9f39f9b4be86e00a2a8173b24fc7e075253e004b37f7db333fdc390359b7b82c83febdbaf2e4e839821f8c869ca3eaffeb5a540742d1771bccb5968b85
6
+ metadata.gz: e4af0f03391b99b46c49a6026271d47e30f235d991ffe18994293d3f92a28a8b986c9c2b4ce9729d099f5e303f5e6f06724319827024d0c0c3482ee009bfa6b9
7
+ data.tar.gz: e6f7d7e8416253884f78d04df608d5320849e2dc9818e50981f22d4a2f3f02adde6339e59510e0c414baeb2a0d98de7191ddb0b070cc14b02f9db262ba31e7a3
data/ext/actuator/clock.c CHANGED
@@ -2,7 +2,7 @@
2
2
  #include "clock.h"
3
3
  #include "debug.h"
4
4
 
5
- #if !defined(__APPLE__) && !defined(_WIN32)
5
+ #if !defined(__APPLE__) && !defined(__MACH__) && !defined(_WIN32)
6
6
  #define HAVE_POSIX_TIMER
7
7
  #include <time.h>
8
8
  #ifdef CLOCK_MONOTONIC
@@ -12,7 +12,7 @@
12
12
  #endif
13
13
  #endif
14
14
 
15
- #ifdef __APPLE__
15
+ #if defined(__APPLE__) || defined(__MACH__)
16
16
  #define HAVE_MACH_TIMER
17
17
  #include <mach/mach_time.h>
18
18
  #endif
@@ -20,12 +20,15 @@
20
20
  #if defined(_WIN32) || defined(_MSC_VER)
21
21
  #define HAVE_WIN32_TIMER
22
22
  #include <windows.h>
23
-
24
23
  #ifdef _MSC_VER
25
24
  #include <Strsafe.h>
26
25
  #endif
27
26
  #endif
28
27
 
28
+ #if !defined(HAVE_POSIX_TIMER) && !defined(HAVE_MACH_TIMER) && !defined(HAVE_WIN32_TIMER)
29
+ #error Only Windows, Linux and OSX are supported
30
+ #endif
31
+
29
32
  static uint64_t last_count;
30
33
  static uint64_t frequency;
31
34
 
data/lib/actuator.rb CHANGED
@@ -4,7 +4,7 @@ require_relative 'actuator/fiber'
4
4
  require_relative 'actuator/fiber_pool'
5
5
 
6
6
  module Actuator
7
- VERSION = "0.0.3"
7
+ VERSION = "0.0.4"
8
8
 
9
9
  class << self
10
10
  def run
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: actuator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - bawNg