how can i run multithread when i draw line,rect,ellipse...?

hello anybody,

i have programmed to draw line,rect,ellipse…but all of them always run one after another.
i want all of them run parallel at the same can i do?
can anybody help me?

Photon library isn’t thread safe, so that’s not possible. Even if it would, the video hardware/driver perform most operation atomicaly, so it wouldn’t make a difference.