26.07.2013, 07:12
Suggestions:
http://www.boost.org/doc/libs/1_54_0...free.queue_hpp
Don't use more than 2 threads.
Implement a blocking function aswell for those having powerful servers.
Make `cost` a default parameter. Also, playerid parameter is useless, you'd better add an "threadidex" parameter.
Also, this means that you have to change the callback:
http://www.boost.org/doc/libs/1_54_0...free.queue_hpp
Don't use more than 2 threads.
Implement a blocking function aswell for those having powerful servers.
Make `cost` a default parameter. Also, playerid parameter is useless, you'd better add an "threadidex" parameter.
pawn Code:
native bcrypt_hash(threadid, threadidex, password[], cost = 4);
pawn Code:
forward OnBcryptHashed(threadid, threadidex, password[], hash[]);