📄 cortex.c
字号:
// This file is part of MANTIS OS, Operating System// See http://mantis.cs.colorado.edu///// Copyright (C) 2003-2005 University of Colorado, Boulder//// This program is free software; you can redistribute it and/or// modify it under the terms of the mos license (see file LICENSE)#include <stdlib.h>#include <stdio.h>#include "cortex.h"#include "gui_gtk.h"#include "gui_xml.h"#include "bionet.h"#include "bionet-interface.h"gchar read_val[256];GCond *widget_cond;GMutex *widget_mutex;static void null_log_handler(const gchar *log_domain, GLogLevelFlags log_level, const gchar *message, gpointer user_data){ }int main(int argc, const char **argv){ g_thread_init(NULL); gdk_threads_init(); widget_cond = g_cond_new(); widget_mutex = g_mutex_new(); //bionet sure has a lot of debug messages... silence them //TODO: write bionet debugs to a file?? g_log_set_default_handler(null_log_handler, NULL); //prime the bionet connection, wait on a cond g_thread_create(bionet_interface_main, NULL, 1, NULL); //once the ui has been inited, the cond is broadcast and we are ready to run //this also drops into gtk_main() gui_gtk_run(&argc, &argv); return 0;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -