How to prioritize bitcoin transactions when solo mining using CPUMINER?
For this task you do not go solo but using an agent in between called the 
Stratum

The node itself is supporting a custom script walletnotify which is executed whenever there is a new transaction found on the network. Then one could customise his stratum code to decide which tx actually to mine (per default they would sort them by the fees) or which ones to ignore.