[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[sc-dev] thisThread.clock or just clock in schedBundleArrayOnClock?



I discovered this while researching the thread beats issue:

schedBundleArrayOnClock { |clock, bundleArray, lag = 0, server, latency|
thisThread.clock.sched(this, {
if (lag != 0) {
SystemClock.sched(lag, { 
server.sendBundle(latency ? server.latency, *bundleArray)
})
} {
server.sendBundle(latency ? server.latency, *bundleArray)
}
})
}

The method takes 'clock' as an argument, but the argument is never used. Should we remove 'thisThread', or the argument?

hjh


: H. James Harkins
.::!:.:.......:.::........:..!.::.::...:..:...:.:.:.:..:

"Come said the Muse,
Sing me a song no poet has yet chanted,
Sing me the universal."  -- Whitman