Liste des Groupes | Revenir à cl c |
On Wed, 20 Mar 2024 00:30:56 +0100sure, i dont always read into peoples code.. i just wanted to say it seems you pass this context structure or pointer to it down the stack each call - it is not necessary
fir <fir@grunge.pl> wrote:
>Michael S wrote:>On Wed, 20 Mar 2024 00:03:04 +0100some thread safe as previous,
fir <fir@grunge.pl> wrote:im not quite sure what you do here.. pass the structure? in fact>
the thing you name context you may not pass at all just make is
standalone static variables becouse they/it is the same for whole
"branch" (given recursive branch of recolorisation)
>
something like
>
int old_color = 0xff0000;
int new_color = 0x00ff00;
>
void RecolorizePixelAndAdjacentPixels(int x, int y)
{
//...
}
>
>
Not thred-safe.
>
The same as your previous.
But I was modifying Malcolm's recursive variant rather than yours.
Malcolm's was thread-safe.
>
>
>
Les messages affichés proviennent d'usenet.