Raytracing !
#11
RE: Raytracing !
Nice work! Smile
Irinikus
Hardware Connoisseur

Trade Count: (0)
Posts: 3,475
Threads: 319
Joined: Dec 2017
Location: South Africa
Website Find Reply
03-19-2023, 06:55 AM
#12
RE: Raytracing !
(07-08-2021, 06:27 PM)Shiunbird Wrote:  Any tips on posix multithreading?

I'm trying to learn and I know how I'd split my code, but I'm still struggling with the syntax and how to prepare the threads.

If you're threading an X11 program, the first thing to do is call XtToolkitThreadInitialize(); for example:

Code:
Bool yesno = XtToolkitThreadInitialize();

    if(!yesno)
    {
        printf("Threading is not supported by this version of Xt\n");
        printf("There is no solution, exiting now...\n");
        exit(0);
    }

Project: Temporarily lost at sea
Plan: World domination! Or something...
(This post was last modified: 03-20-2023, 04:57 AM by vishnu.)
vishnu
Tezro, Octane2, 2 x Onyx4

Trade Count: (0)
Posts: 1,245
Threads: 41
Joined: Dec 2017
Location: Minneapolis, Minnesota USA
Find Reply
03-20-2023, 04:44 AM


Forum Jump:


Users browsing this thread: 1 Guest(s)