Con Kolivas
|
7318eceef9
|
Make the devlock a cglock in usbutils and only grab the write lock for fundamental changes allowing us to send and receive transfers concurrently without lock contention.
|
2013-10-07 23:34:01 +11:00 |
|
Con Kolivas
|
44b9cf50e3
|
Limit the duration we wait for reads in BF1 based on time already elapsed to account for other delays such as work restart messages or out of work.
|
2013-09-26 12:11:25 +10:00 |
|
Con Kolivas
|
466d3beca0
|
Provide a --disable-libcurl config option to build support for stratum mining only.
|
2013-09-21 22:49:28 +10:00 |
|
Con Kolivas
|
8ede407df7
|
Make extract_sockaddr set variables passed to it rather than pool struct members.
|
2013-09-05 23:10:19 +10:00 |
|
Con Kolivas
|
e1433f8ef8
|
Use timespecs on windows as cgtimer_t to capitalise on the higher resolution clock changes.
|
2013-08-22 13:49:22 +10:00 |
|
Con Kolivas
|
903d007cb4
|
Provide cgtimer_sub helper functions.
|
2013-08-20 22:47:13 +10:00 |
|
Con Kolivas
|
9dc63cee53
|
Provide cgtimer_to_ms helper functions.
|
2013-08-20 22:35:38 +10:00 |
|
Con Kolivas
|
7d0c9b5060
|
Rename cgsleep_prepare_r as cgtimer_time to get time in cgtimer_t format and call cgsleep_prepare_r as a macro for cgtimer_time
|
2013-08-20 22:27:14 +10:00 |
|
Con Kolivas
|
eeac9d81fc
|
Replace all references to the old n*sleep functions with the equivalent cgsleep_*s replacements.
|
2013-08-20 19:23:49 +10:00 |
|
Con Kolivas
|
7d448cd754
|
timeGetTime uses huge resources on windows so revert to using timevals for its implementation of cgtimer_t
|
2013-08-19 23:39:49 +10:00 |
|
Con Kolivas
|
b238139cf9
|
Provide cgtimer_to_timeval helper functions.
|
2013-08-19 17:44:45 +10:00 |
|
Con Kolivas
|
09679e9f8b
|
Provide a timeval_to_cgtime helper function to reuse values.
|
2013-08-19 17:38:20 +10:00 |
|
Con Kolivas
|
09e9091dd7
|
Simplify cgsleep code for windows by using a typedef for cgtimer_t that resolves to clock resolution, using that internally.
|
2013-08-19 13:54:56 +10:00 |
|
Con Kolivas
|
ad87db07d9
|
Make cgsleep_us_r take an int64_t for us.
|
2013-08-18 14:39:26 +10:00 |
|
Con Kolivas
|
621eb00309
|
Provide reentrant versions of cgsleep functions to allow start time to be set separately from the beginning of the actual sleep, allowing scheduling delays to be counted in the sleep.
|
2013-08-18 10:49:52 +10:00 |
|
Con Kolivas
|
0b5edb24f9
|
Make the nmsleep and nusleep functions use the new cgsleep functions internally till functions are migrated to the new cgsleep API.
|
2013-08-18 10:36:25 +10:00 |
|
Con Kolivas
|
188210a3d2
|
Add a ms_to_timespec helper function, and create a cgsleep_ms function that uses absolute timers with clock_nanosleep to avoid overruns.
|
2013-08-18 10:28:28 +10:00 |
|
Con Kolivas
|
99cbf09dd1
|
Add a timeraddspec helper function.
|
2013-08-18 00:38:29 +10:00 |
|
Con Kolivas
|
1bcd9a43b1
|
Provide a us_to_timespec helper function.
|
2013-08-18 00:34:01 +10:00 |
|
Con Kolivas
|
2278204ddd
|
Provide a us_to_timeval helper function.
|
2013-08-18 00:27:33 +10:00 |
|
Con Kolivas
|
a6b1c31742
|
Add helper functions to convert timespec to timeval and vice versa.
|
2013-08-18 00:19:47 +10:00 |
|
Con Kolivas
|
e95ad0479f
|
Nonce2 stratum submission is not working with nonce2 lengths >4, revert the buggy __bin2hex function and use bin2hex.
|
2013-08-13 22:44:22 +10:00 |
|
Con Kolivas
|
46b6b07afa
|
Avoid a potential overflow should a pool specify a large nonce2 length with stratum.
|
2013-08-12 16:02:20 +10:00 |
|
Kano
|
48d91c7f2d
|
cgsem - increase information on failure
|
2013-08-10 10:36:38 +10:00 |
|
ckolivas
|
9b2e517f30
|
Use cgsem structures instead of the flaky pings in the work queue to start mining threads and remove the unused thr_info_freeze function.
|
2013-06-09 12:20:04 +10:00 |
|
ckolivas
|
b59c33800b
|
Implement cgminer specific cgsem semaphores to imitate unnamed semaphore behaviour on osx which does not support them.
|
2013-06-06 13:08:00 +10:00 |
|
Con Kolivas
|
d52ab244ee
|
Provide an nusleep equivalent function to nmsleep.
|
2013-05-28 23:00:14 +10:00 |
|
Kano
|
863c9e27df
|
util.c str_text make a fully text readable version of str
|
2013-04-26 14:49:10 +10:00 |
|
Con Kolivas
|
a2a7a036f0
|
Create an OS specific sock_blocks function.
|
2013-04-24 23:05:44 +10:00 |
|
Con Kolivas
|
d2abaa8317
|
Provide wrappers for commonly used timer routines with API stats.
|
2013-04-22 10:49:10 +10:00 |
|
Con Kolivas
|
62a1403b3b
|
Move util.c exports to util.h
|
2013-04-21 19:41:54 +10:00 |
|
Con Kolivas
|
3d7f824363
|
Create a cgminer specific gettimeofday wrapper that is always called with tz set to NULL and increases the resolution on windows.
|
2013-04-21 19:02:44 +10:00 |
|
Con Kolivas
|
4cde791e9f
|
Provide basic framework for restarting stratum depending on whether resume support exists or not.
|
2013-02-15 21:31:44 +11:00 |
|
Con Kolivas
|
51d11a28f9
|
Provide a wrapper for aligning lengths of size_t to 4 byte boundaries.
|
2013-02-04 10:19:12 +11:00 |
|
Con Kolivas
|
6e2e7d36de
|
Differentiate socket full from sock full.
|
2012-12-29 10:46:55 +11:00 |
|
Con Kolivas
|
944af31b99
|
Parse anything in the stratum socket if it's full without waiting. Empty the socket even if a connection is not needed in case there are share returns.
|
2012-12-26 09:31:41 +11:00 |
|
Con Kolivas
|
fc5d3a0eaf
|
Suspend stratum connections to backup pools when there is no requirement to potentially grab work from them.
|
2012-12-03 09:52:46 +11:00 |
|
Con Kolivas
|
16637ac91e
|
Fix missing export for RenameThread.
|
2012-12-03 08:14:24 +11:00 |
|
Con Kolivas
|
f94cff77e6
|
Microoptimise and remove redundant copy of strdup function in calloc_strcat.
|
2012-12-02 18:06:55 +11:00 |
|
Con Kolivas
|
0ae02c6ec4
|
Since we will be using calloc_str to put a string into it, convert the function to calloc_strcat which does it automatically.
|
2012-12-01 08:26:31 +11:00 |
|
Con Kolivas
|
ee8609d9a9
|
Provide helper functions calloc_str and realloc_strcat to create and extend arbitrary length arrays based on string length.
|
2012-11-29 12:48:17 +11:00 |
|
Paul Sheppard
|
9f74e650b3
|
Tidy up device error counts
|
2012-11-04 20:17:43 -08:00 |
|
Con Kolivas
|
1afb794cb3
|
Cast socketfail to integer since SOCKET is an unsigned int on windows.
|
2012-10-07 18:23:22 +11:00 |
|
Con Kolivas
|
a8d693029a
|
Move stratum sockets to curl infrastructure with locking around send+recv to begin support for proxies and ssl.
|
2012-10-05 12:37:29 +10:00 |
|
Con Kolivas
|
deb0a9b644
|
Windows doesn't work with MSG_PEEK on recv so move to a continuously updating buffer for incoming messages.
|
2012-10-04 23:18:33 +10:00 |
|
Con Kolivas
|
c113534feb
|
Begin support for mingw stratum build.
Conflicts:
configure.ac
|
2012-10-04 17:52:35 +10:00 |
|
Con Kolivas
|
b5617734fa
|
Provide locking around stratum send operations to avoid races.
|
2012-09-30 23:10:43 +10:00 |
|
Con Kolivas
|
2de951518e
|
Abstract out share submit as a function to be useable by stratum.
|
2012-09-30 20:24:24 +10:00 |
|
Con Kolivas
|
739cba28a7
|
Rename parse_stratum to parse_method as it is only for stratum messages that contain methods.
|
2012-09-30 19:19:46 +10:00 |
|
Con Kolivas
|
7415d7aaa0
|
Begin implementing a hash database of submissions and attempt sending results.
|
2012-09-29 16:10:13 +10:00 |
|