eventdispatch 0.1.22__py3-none-any.whl → 0.1.24__py3-none-any.whl

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.
@@ -4,7 +4,7 @@ import os, sys, time
4
4
  import threading, signal
5
5
 
6
6
  from .core import *
7
- from .aux1 import *
7
+ from .common1 import *
8
8
 
9
9
  '''
10
10
  a thread-safe data structure
@@ -417,7 +417,7 @@ class Collector(object):
417
417
  self.r = []
418
418
  self.s = []
419
419
 
420
- if __name__ == "__main__":
420
+ def main():
421
421
  s = 4
422
422
 
423
423
  sem1 = CompositeSemaphore([x for x in range(s)])
@@ -472,3 +472,6 @@ if __name__ == "__main__":
472
472
  th.join()
473
473
  for th in p_threads:
474
474
  th.join()
475
+
476
+ if __name__ == "__main__":
477
+ main()
eventdispatch/example1.py CHANGED
@@ -9,7 +9,7 @@ License: Apache-2.0 (see LICENSE for details)
9
9
  '''
10
10
 
11
11
  from .core import *
12
- from .aux1 import *
12
+ from .common1 import *
13
13
 
14
14
  import signal, time, os, sys, random, threading
15
15
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: eventdispatch
3
- Version: 0.1.22
3
+ Version: 0.1.24
4
4
  Summary: Event Dispatch: discrete time synchronization
5
5
  Home-page: http://github.com/cyan-at/eventdispatch
6
6
  Author: Charlie Yan
@@ -0,0 +1,11 @@
1
+ eventdispatch/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ eventdispatch/common1.py,sha256=pImLomr3y3a4YKDWtxVRwZEd2pCqjBA_LaNOTZhDbyM,8284
3
+ eventdispatch/composite_semaphore.py,sha256=3oJCzDDoSxVPz1l43UvcXxEjaxihMIKdqZanbqywub0,14697
4
+ eventdispatch/core.py,sha256=Pk0FUcQBCF2Bpq4-gfIc6fN8dxbXrgZV1Wjv8jx7O7E,6978
5
+ eventdispatch/example1.py,sha256=y0URfiAyJMlbWL-t8BZJayyvlDPT43_kYd3rsLTt2Ek,9168
6
+ eventdispatch-0.1.24.dist-info/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
7
+ eventdispatch-0.1.24.dist-info/METADATA,sha256=x9iOsDW0elPx83ZXSSawerNVTp2W-PMy6joDqC7irss,15359
8
+ eventdispatch-0.1.24.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
9
+ eventdispatch-0.1.24.dist-info/entry_points.txt,sha256=dgLZfoSi-eTmgls4OX2KTVbxcbpuFI3ab0p0zrcGcts,135
10
+ eventdispatch-0.1.24.dist-info/top_level.txt,sha256=EFnhw7vsL0B6wdGcB7YXLOUR-2QlTLFhAF8gwp43z-U,14
11
+ eventdispatch-0.1.24.dist-info/RECORD,,
@@ -1,2 +1,3 @@
1
1
  [console_scripts]
2
2
  eventdispatch_example1 = eventdispatch.example1:main
3
+ eventdispatch_example2 = eventdispatch.composite_semaphore:main
@@ -1,11 +0,0 @@
1
- eventdispatch/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- eventdispatch/aux1.py,sha256=pImLomr3y3a4YKDWtxVRwZEd2pCqjBA_LaNOTZhDbyM,8284
3
- eventdispatch/composite_semaphore.py,sha256=LIx_UA6JW9lUtQllqFFe5hjL3FCbeDeWj79zLn6GoCY,14671
4
- eventdispatch/core.py,sha256=Pk0FUcQBCF2Bpq4-gfIc6fN8dxbXrgZV1Wjv8jx7O7E,6978
5
- eventdispatch/example1.py,sha256=9ktrmVJNJ7WC4ugArXOXyKuSNqbu2qFYIrEeaO_AynY,9165
6
- eventdispatch-0.1.22.dist-info/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
7
- eventdispatch-0.1.22.dist-info/METADATA,sha256=5AQwMnw-yAwBrLvOcjbv3Kz2Fy5tZdKtWt73FRBTHYU,15359
8
- eventdispatch-0.1.22.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
9
- eventdispatch-0.1.22.dist-info/entry_points.txt,sha256=52gXPj1zjMPWj460qrTJ6RBn3XZKFoqgNdI4iDwYOGw,71
10
- eventdispatch-0.1.22.dist-info/top_level.txt,sha256=EFnhw7vsL0B6wdGcB7YXLOUR-2QlTLFhAF8gwp43z-U,14
11
- eventdispatch-0.1.22.dist-info/RECORD,,
File without changes