Petar Kapriš
f5be463c05
Simplify plane_resize function
2025-10-13 22:18:33 +02:00
Petar Kapriš
64f921eff7
Fix blit_plane
...
This edit will make sure blit_plane only acts if all workers have
completed their drawing, since it's not much use otherwise.
2025-10-13 22:18:33 +02:00
Petar Kapriš
99fc7ce405
Rename draw_plane to blit_plane
2025-10-13 22:18:33 +02:00
Petar Kapriš
96087d17a1
Fix cairo surface flushing and marking in create_surface
2025-10-13 22:18:33 +02:00
Petar Kapriš
94176c8d7c
Move threads array and the cairo surface
2025-10-13 22:18:33 +02:00
Petar Kapriš
7f73925769
Mark cairo surface as dirty from final worker thread
2025-10-13 22:17:48 +02:00
Petar Kapriš
270c00cefc
Make polling by workers rarer
...
Previously workers would poll for the availability of the drawing board
after every drawn pixel. Now they do it after every line, which was
originally the plan.
2025-10-13 21:01:47 +02:00
Petar Kapriš
9b19884286
Clean up compiler warnings
2025-10-13 16:12:01 +02:00
Petar Kapriš
ea699e5c48
Reorganize functions in code
2025-10-08 11:31:25 +02:00
Petar Kapriš
4b150c8097
Modify argument to worker thread functions
...
Instead of only supplying the index, the pointer to the threadInfo
structure is passed.
2025-10-08 10:29:56 +02:00
Petar Kapriš
ba685cc0ca
Detach worker threads upon creation
2025-10-08 10:29:49 +02:00
Petar Kapriš
2a3fee2c3f
Rewrite the program to use POSIX threads
...
This is work in progress, there might still be some concurrency issues
to be resolved here.
2025-10-07 13:26:39 +02:00
Petar Kapriš
efac829915
Initial commit
2024-02-23 13:11:14 +01:00