我一直在尝试从Maven构建这个包,但它失败了。即使手动尝试从felix控制台上传也无济于事。我尝试从/ apps / project / install和installploy下的安装位置删除jar。但没有运气。下面是堆栈跟踪。曾经在早期版本中工作的那个。
任何帮助将不胜感激
extern crate libc;
use std::thread;
use std::thread::JoinHandle;
use std::os::unix::thread::JoinHandleExt;
use libc::pthread_join;
use libc::c_void;
use std::ptr;
use std::time::Duration;
pub struct WorkerPool {
pub join_handles: Vec<JoinHandle<()>>
}
impl WorkerPool {
///
/// Does the actual ingestion
///
pub fn ingest(&mut self) {
// Use 9 threads for an example.
for i in 0..10 {
self.join_handles.push(
thread::spawn(move || {
// Get the videos
println!("Getting videos for thread {}", i);
thread::sleep(Duration::new(5, 0));
})
);
}
}
///
/// Joins all threads
///
pub fn terminate(&mut self) {
println!("Total handles: {}", self.join_handles.len());
for handle in &self.join_handles {
println!("Joining thread...");
unsafe {
let mut state_ptr: *mut *mut c_void = 0 as *mut *mut c_void;
pthread_join(handle.as_pthread_t(), state_ptr);
}
}
self.join_handles = vec![];
}
}
答案 0 :(得分:0)
我已经尝试了所有事情。最后,这对我有用。
结论:那是一个陈旧的捆绑包。您只需要完全摆脱它,然后再安装一个即可!
可能对您不起作用。但这值得一试。