DLTcollab / dcurl

Hardware-accelerated Multi-threaded IOTA PoW, drop-in replacement for ccurl

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unify thread synchronization APIs with libtuv

jserv opened this issue · comments

Since libtuv is integrated into dcurl, we can unify the use of thread synchronization with libtuv APIs. Specifically, all occurrence of mutex and semaphore can be replaced with the corresponding libtuv equivalents, which are implemented with cross-platform support in mind. It implies that we can concentrate on abstract computing and resource management without enumerating GNU/Linux, macOS, and even MS-Windows ports.

Related: #102

Although replacing thread synchronization APIs with libtuv is trivial, it would have issue when compiling dcurl on other platform.
For example, the de10 nano hardware platform.
Check #105 for reference.

The libtuv needs to specify the supported hardware and OS, but the current detection method in mk/submodule.mk is quite simple.