[etherlab-users] Where should I call mlockall and setpriority in my code?

Gavin Lambert gavin.lambert at tomra.com
Wed Oct 3 00:35:34 CEST 2018


They need to be called some time prior to activating the master.  It is not necessary to call them earlier than this, but it’s also not harmful to do so either (provided that the MCL_FUTURE option was specified).

From: Mohsen Alizadeh Noghani
Sent: Tuesday, 2 October 2018 22:39
To: etherlab-users at etherlab.org
Subject: [etherlab-users] Where should I call mlockall and setpriority in my code?

In the example codes, for instance dc_user, mlockall is called after defining the slaveconfig and setpriority is called after ecrt_domain_data.
Is there a reason for not calling these functions earlier (for example in the first line of main)?
Best,
Mohsen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20181002/33da8360/attachment-0004.htm>


More information about the Etherlab-users mailing list