X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fmeshlink.h;fp=src%2Fmeshlink.h;h=6a50eb66f1b3a54776e6c5c5ce191570631a6aee;hb=e216dc2392283cb702c2ef95a79086679c063e4d;hp=5390c4e8645c9e30ce0db49162f0b9e016f5850e;hpb=af87825c8c8479c576af390adae502b2e5bf6e5f;p=meshlink diff --git a/src/meshlink.h b/src/meshlink.h index 5390c4e8..6a50eb66 100644 --- a/src/meshlink.h +++ b/src/meshlink.h @@ -1608,6 +1608,18 @@ extern void meshlink_set_inviter_commits_first(struct meshlink_handle *mesh, boo */ extern void meshlink_set_external_address_discovery_url(struct meshlink_handle *mesh, const char *url); +/// Set the scheduling granularity of the application +/** This should be set to the effective scheduling granularity for the application. + * This depends on the scheduling granularity of the operating system, the application's + * process priority and whether it is running as realtime or not. + * The default value is 10000 (10 milliseconds). + * + * \memberof meshlink_handle + * @param mesh A handle which represents an instance of MeshLink. + * @param granularity The scheduling granularity of the application in microseconds. + */ +extern void meshlink_set_scheduling_granularity(struct meshlink_handle *mesh, long granularity); + #ifdef __cplusplus } #endif