]> rtime.felk.cvut.cz Git - frescor/frsh-include.git/commitdiff
Add frsh_get_local_cpu_id()
authorMichal Sojka <sojkam1@fel.cvut.cz>
Thu, 20 May 2010 13:05:58 +0000 (15:05 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Thu, 20 May 2010 13:05:58 +0000 (15:05 +0200)
frsh_core.h

index 76e1a72487a5eabd4a5a43d1a02a6f10b0b69c6a..3dc6ac1773c1a79a8aeea2c9bc910c7418e819f7 100644 (file)
@@ -1575,6 +1575,19 @@ int frsh_service_thread_get_data
 //threads
 
 
+////////////////////////////////////////////////////////////////////////
+//           OTHER
+////////////////////////////////////////////////////////////////////////
+
+/**
+ * Returns resource id of local CPU.
+ *
+ * The ID is determined from environment variable FRSH_CPU_ID or, if
+ * that is not defined, the compile time default (defined in
+ * config.target/omk).
+ */
+frsh_resource_id_t frsh_get_local_cpu_id(void);
+
 FRSH_CPP_END_DECLS
 
 #endif // _FRSH_CORE_H_