.cosmetics

git-svn-id: svn://ultimatepp.org/upp/trunk@12668 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2019-01-15 08:48:50 +00:00
parent ca6757b9bc
commit 6fc49859fd
3 changed files with 8 additions and 8 deletions

View file

@ -94,13 +94,13 @@ oid]_()>`&_[*@3 fn])&]
[s5;:Upp`:`:CoWork`:`:operator`*`(Upp`:`:Function`<void`(`)`>`&`&`): [_^Upp`:`:CoWork^ C
oWork][@(0.0.255) `&]_[* operator`*]([_^Upp`:`:Function^ Function]<[@(0.0.255) void]_()>`&
`&_[*@3 fn])&]
[s2;%% Schedules [%-*@3 fn] to be run on all worker threads. After
the first thread returns from [%-*@3 fn], all other scheduled [%-*@3 fn]
jobs that has not started yet are unscheduled. Waits for all
started jobs to finish. The function also sets internal index
counter to zero in CoWork before starting any worker thread.
Worker thread should acquire job quantum in internal loop `-
internal CoWork index can be used for this purpose.&]
[s2;%% Schedules [%-*@3 fn] to be run on all worker threads and on
calling thread. After the first thread returns from [%-*@3 fn],
all other scheduled [%-*@3 fn] jobs that has not started yet are
unscheduled. Waits for all started jobs to finish. The function
also sets internal index counter to zero in CoWork before starting
any worker thread. Worker thread should acquire job quantum in
internal loop `- internal CoWork index can be used for this purpose.&]
[s3;%% &]
[s4; &]
[s5;:Upp`:`:CoWork`:`:Next`(`): [@(0.0.255) int]_[* Next]()&]

View file

@ -103,7 +103,6 @@ void GLCtrl::GLPane::State(int reason)
LRESULT GLCtrl::GLPane::WindowProc(UINT message, WPARAM wParam, LPARAM lParam)
{
if(message == WM_PAINT && s_openGLContext) {
static int i = 0;
PAINTSTRUCT ps;
HWND hwnd = GetHWND();
BeginPaint(hwnd, &ps);

View file

@ -333,6 +333,7 @@ void BufferPainter::FinishPathJob()
{
if(jobcount == 0)
return;
CoWork co;
co * [&] {
for(;;) {