WrapEarnPass left a comment (geany/geany#4620)
I got linewrapping to run without crashing by wrapping it in a gio task too.
```
#ifdef GTK
GThreadPool* threadpool = g_thread_pool_new (
baked_cb, NULL, threads, TRUE, NULL );
for (size_t th = 0; th < threads; th++) {
DecorationData *decoration = g_slice_new
(DecorationData);
decoration->significantLines=&significantLines;
decoration->surface=surface;
decoration->nextIndex=&nextIndex;
decoration->linesAfterWrap= &linesAfterWrap;
decoration->mutexRetrieve = &mutexRetrieve;
decoration->view=&view;
decoration->editModel = this;
decoration->linesBeingWrapped =
linesBeingWrapped;
decoration->lineToWrap = &lineToWrap;
decoration->pdoc = pdoc;
decoration->vs = &vs;
decoration->wrapWidth=wrapWidth;
decoration->multiThreaded=multiThreaded;
g_thread_pool_push(threadpool,decoration,NULL);
}
g_thread_pool_free(threadpool, FALSE, TRUE);
#else
```
Let me clean this up a little and I'll get a pull opened.
--
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/4620#issuecomment-5036933870
You are receiving this because you are subscribed to this thread.
Message ID: <geany/geany/issues/4620/[email protected]>