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 time.how can i do?
can anybody help me?
thanks
Tuyn

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.